#### Other Generic Politics ########

generic_coalition_politics_desicions = {
	
	retire_current_leader = {
		icon = eng_trade_unions_support
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		complete_effect = {
			hidden_effect = {
				meta_effect = {
					text = {
						set_country_flag = [META_SET_RULING_PARTY]
					}
					META_SET_RULING_PARTY = "[meta_set_ruling_leader]"
				}
				set_leader = yes
			}
		}	
	}
	
	hold_reelections = {
		icon = eng_trade_unions_support
		
		cost = 200
		days_remove = 0
		days_re_enable = 0
		
		complete_effect = {
			country_event = { id = MD4_election_campaign.0 }
		}	
	}
	
	## Change election laws ##
	
	permanently_suspend_elections = {
		icon = oppression
		
		cost = 200
		days_remove = 0
		days_re_enable = 0
		
		
		visible = {
			has_elections = yes
			OR = {
				is_in_array = { ruling_party = 0 } #Western_Autocracy
				is_in_array = { ruling_party = 4 } #Communist-State
				is_in_array = { ruling_party = 7 } #Autocracy
				is_in_array = { ruling_party = 10 } #Kingdom
				is_in_array = { ruling_party = 11 } #Caliphate
				is_in_array = { ruling_party = 13 } #Neutral_Autocracy
				is_in_array = { ruling_party = 19 } #neutral communist
				is_in_array = { ruling_party = 21 } #fascist
				is_in_array = { ruling_party = 22 } #Nat_Autocracy
				is_in_array = { ruling_party = 23 } #Monarchist
			}
		}
		
		complete_effect = {
			set_country_flag = no_leader_change
			if = {
				limit = {
					has_government = democratic
				}
				set_politics = {
					ruling_party = democratic
					elections_allowed = no
				}
			}
			else_if = {
				limit = {
					has_government = communism
				}
				set_politics = {
					ruling_party = communism
					elections_allowed = no
				}
			}
			else_if = {
				limit = {
					has_government = fascism
				}
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
			}
			else_if = {
				limit = {
					has_government = neutrality
				}
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
			}
			else_if = {
				limit = {
					has_government = nationalist
				}
				set_politics = {
					ruling_party = nationalist
					elections_allowed = no
				}
			}
			clr_country_flag = no_leader_change
		}
	}
	
	return_democracy = {
		icon = eng_puppet_usa
		
		cost = 200
		days_remove = 0
		days_re_enable = 0
		
		
		visible = {
			has_elections = no
		}
		
		complete_effect = {
			set_country_flag = no_leader_change
			if = {
				limit = {
					has_government = democratic
				}
				set_politics = {
					ruling_party = democratic
					elections_allowed = yes
				}
			}
			else_if = {
				limit = {
					has_government = communism
				}
				set_politics = {
					ruling_party = communism
					elections_allowed = yes
				}
			}
			else_if = {
				limit = {
					has_government = fascism
				}
				set_politics = {
					ruling_party = fascism
					elections_allowed = yes
				}
			}
			else_if = {
				limit = {
					has_government = neutrality
				}
				set_politics = {
					ruling_party = neutrality
					elections_allowed = yes
				}
			}
			else_if = {
				limit = {
					has_government = nationalist
				}
				set_politics = {
					ruling_party = nationalist
					elections_allowed = yes
				}
			}
			clr_country_flag = no_leader_change
		}
	}
	
	increase_election_threshold = {
		icon = generic
		
		cost = 100
		days_remove = 0
		days_re_enable = 0
		
		
		available = {
			has_elections = yes
			NOT = {
				custom_trigger_tooltip = {
					tooltip = election_threshold_max	
					check_variable = { election_threshold > 0.095 }
				}
			}
		}
		complete_effect = {
			add_to_variable = { election_threshold = 0.01 }
		}
	}
	
	decrease_election_threshold = {
		icon = generic
		
		cost = 100
		days_remove = 0
		days_re_enable = 0
		
		
		available = {
			has_elections = yes
			NOT = {
				custom_trigger_tooltip = {
					tooltip = election_threshold_min	
					check_variable = { election_threshold < 0.015 }
				}
			}
		}
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { election_threshold = 0.01 }
			}
		}
	}
	
	### Extremist Civil Wars
	
	fascism_extremist_civil_war = {
		icon = revolt
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		visible = {
			check_variable = { party_pop_array^21 > 0.10 } #significant fascism
			has_civil_war = no
			NOT = {
				OR = {
					is_in_array = { gov_coalition_array = 21 } #not is in coalition
					is_in_array = { ruling_party = 21 } #not is ruling party
				}
			}
		}
		available = {
			NOT = {
				has_government = nationalist
			}
			custom_trigger_tooltip = {
				tooltip = fascism_20_tt	
				check_variable = { party_pop_array^21 > 0.2 } #test
			}
		}
		complete_effect = {
		
			hidden_effect = {
				#Release copy of existing
				set_country_flag = no_leader_change
				if = {
					limit = {
						has_government = nationalist
					}
					start_civil_war = {
						ideology = nationalist
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = communism
					}
					start_civil_war = {
						ideology = communism
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = democratic
					}
					start_civil_war = {
						ideology = democratic
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = neutrality
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = fascism
					}
					start_civil_war = {
						ideology = fascism
						size = 0.5
					}
				}
				clr_country_flag = no_leader_change
				
				#replicating current politics
				random_other_country = {
					limit = {
						original_tag = PREV
						NOT = { TAG = PREV }
					}
					set_temp_variable = { temp_democratic = PREV.party_popularity@democratic }
					multiply_temp_variable = { temp_democratic = 100 }
					set_temp_variable = { temp_total = temp_democratic }
					set_temp_variable = { temp_communism = PREV.party_popularity@communism }
					multiply_temp_variable = { temp_communism = 100 }
					add_to_temp_variable = { temp_total = temp_communism }
					set_temp_variable = { temp_neutrality = PREV.party_popularity@neutrality }
					multiply_temp_variable = { temp_neutrality = 100 }
					add_to_temp_variable = { temp_total = temp_neutrality }
					set_temp_variable = { temp_fascism = PREV.party_popularity@fascism }
					multiply_temp_variable = { temp_fascism = 100 }
					add_to_temp_variable = { temp_total = temp_fascism }
					set_temp_variable = { temp_nationalist = PREV.party_popularity@nationalist }
					multiply_temp_variable = { temp_nationalist = 100 }
					add_to_temp_variable = { temp_total = temp_nationalist }
					subtract_from_temp_variable = { temp_total = 100 }
					multiply_temp_variable = { temp_total = -1 }
					add_to_temp_variable = { temp_nationalist = temp_total }
					
					set_popularities = {
						democratic = temp_democratic
						communism = temp_communism
						neutrality = temp_neutrality
						fascism = temp_fascism
						nationalist = temp_nationalist
					}
					add_popularity = {
						ideology = nationalist
						popularity = -0.2
					}
					start_politics_input = yes
					#copy politics
					for_loop_effect = {
						end = party_pop_array^num
						value = v
						set_variable = { party_pop_array^v = PREV.party_pop_array^v }
					}
					add_to_array = { ruling_party = PREV.ruling_party^0 }
					for_loop_effect = {
						end = gov_coalition_array^num
						value = v
						add_to_array = { gov_coalition_array = PREV.gov_coalition_array^v }
					}
					set_variable = { party_pop_array^21 = 0.01 } #all moved to fight ;) 
					set_variable = { party_pop_elect_array^21 = 0 } #made illegal
					add_up_party_totals = yes
					set_party_positions = yes
					startup_politics = yes
					
					#VARIABLES
					set_variable = { tax_rate = PREV.tax_rate }
					set_variable = { treasury = PREV.treasury }
					
					#don't get values of original yet - REMINDER -> add it on_civil_war_end
					set_variable = { debt = 0 }
					set_variable = { int_investments = 0 }
					
					#influence
					set_variable = { domestic_influence_amount = PREV.domestic_influence_amount }
					#just copy all
					for_loop_effect = {
						end = PREV.influence_array^num
						value = v
						
						add_to_array = { influence_array = PREV.influence_array^v }
						add_to_array = { influence_array_val = PREV.influence_array_val^v }
					}
					recalculate_influence = yes
					
					#GAME VARIABLES
					add_political_power = PREV.political_power
					add_political_power = 400 #bonus
					
					#LAWS
					set_variable = { gdp_capita = PREV.gdp_capita }
					meta_effect = {
						text = {
							add_ideas = gdp_[GDP_LEVEL]
						}
						GDP_LEVEL = "[?gdp_capita|0]"
					}
					set_variable = { bureaucracy = PREV.bureaucracy }
					meta_effect = {
						text = {
							add_ideas = bureau_0[BUREAU_LEVEL]
						}
						BUREAU_LEVEL = "[?bureaucracy|0]"
					}
					set_variable = { crime_fighting = PREV.crime_fighting }
					meta_effect = {
						text = {
							add_ideas = police_0[POLICE_LEVEL]
						}
						POLICE_LEVEL = "[?crime_fighting|0]"
					}
					set_variable = { education_budget = PREV.education_budget }
					meta_effect = {
						text = {
							add_ideas = edu_0[EDU_LEVEL]
						}
						EDU_LEVEL = "[?education_budget|0]"
					}
					set_variable = { health_budget = PREV.health_budget }
					meta_effect = {
						text = {
							add_ideas = health_0[HEALTH_LEVEL]
						}
						HEALTH_LEVEL = "[?health_budget|0]"
					}
					set_variable = { social_budget = PREV.social_budget }
					meta_effect = {
						text = {
							add_ideas = social_0[WELFARE_LEVEL]
						}
						WELFARE_LEVEL = "[?social_budget|0]"
					}
					
					set_variable = { Military_Spending = PREV.Military_Spending }
					subtract_from_variable = { Military_Spending = 1 }
					meta_effect = {
						text = {
							add_ideas = defence_0[DEFENCE_LEVEL]
						}
						DEFENCE_LEVEL = "[?Military_Spending|0]"
					}
					set_variable = { Military_Spending = PREV.Military_Spending }
					
					set_variable = { economic_cycles = PREV.economic_cycles }
					if = { limit = { check_variable = { economic_cycles = 6 } }
						add_ideas = depression
					}
					else_if = { limit = { check_variable = { economic_cycles = 5 } }
						add_ideas = recession
					}
					else_if = { limit = { check_variable = { economic_cycles = 4 } }
						add_ideas = stagnation
					}
					else_if = { limit = { check_variable = { economic_cycles = 3 } }
						add_ideas = stable_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 2 } }
						add_ideas = fast_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 1 } }
						add_ideas = economic_boom
					}
					
					if = { limit = { PREV = { has_idea = paralyzing_corruption } }
						add_ideas = paralyzing_corruption
					}
					else_if = { limit = { PREV = { has_idea = crippling_corruption } }
						add_ideas = crippling_corruption
					}
					else_if = { limit = { PREV = { has_idea = rampant_corruption } }
						add_ideas = rampant_corruption
					}
					else_if = { limit = { PREV = { has_idea = unrestrained_corruption } }
						add_ideas = unrestrained_corruption
					}
					else_if = { limit = { PREV = { has_idea = systematic_corruption } }
						add_ideas = systematic_corruption
					}
					else_if = { limit = { PREV = { has_idea = widespread_corruption } }
						add_ideas = widespread_corruption
					}
					else_if = { limit = { PREV = { has_idea = medium_corruption } }
						add_ideas = medium_corruption
					}
					else_if = { limit = { PREV = { has_idea = modest_corruption } }
						add_ideas = modest_corruption
					}
					else_if = { limit = { PREV = { has_idea = slight_corruption } }
						add_ideas = slight_corruption
					}
					else_if = { limit = { PREV = { has_idea = negligible_corruption } }
						add_ideas = negligible_corruption
					}
					
					if = { limit = { PREV = { has_idea = consumption_economy } }
						add_ideas = consumption_economy
					}
					else_if = { limit = { PREV = { has_idea = mixed_economy } }
						add_ideas = mixed_economy
					}
					else_if = { limit = { PREV = { has_idea = export_economy } }
						add_ideas = export_economy
					}
					
					if = { limit = { PREV = { has_idea = no_military } }
						add_ideas = no_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_army } }
						add_ideas = volunteer_army
					}
					else_if = { limit = { PREV = { has_idea = partial_draft_army } }
						add_ideas = partial_draft_army
					}
					else_if = { limit = { PREV = { has_idea = draft_army } }
						add_ideas = draft_army
					}
					
					if = { limit = { PREV = { has_idea = no_women_in_military } }
						add_ideas = no_women_in_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_women } }
						add_ideas = volunteer_women
					}
					else_if = { limit = { PREV = { has_idea = drafted_women } }
						add_ideas = drafted_women
					}
					
					if = { limit = { PREV = { has_idea = intervention_isolation } }
						add_ideas = intervention_isolation
					}
					else_if = { limit = { PREV = { has_idea = intervention_local_security } }
						add_ideas = intervention_local_security
					}
					else_if = { limit = { PREV = { has_idea = intervention_limited_interventionism } }
						add_ideas = intervention_limited_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_regional_interventionism } }
						add_ideas = intervention_regional_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_global_interventionism } }
						add_ideas = intervention_global_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_neo_imperialism } }
						add_ideas = intervention_neo_imperialism
					}
					
					if = { limit = { PREV = { has_idea = officer_baptism_by_fire } }
						add_ideas = officer_baptism_by_fire
					}
					else_if = { limit = { PREV = { has_idea = officer_basic_training } }
						add_ideas = officer_basic_training
					}
					else_if = { limit = { PREV = { has_idea = officer_advanced_training } }
						add_ideas = officer_advanced_training
					}
					else_if = { limit = { PREV = { has_idea = officer_military_school } }
						add_ideas = officer_military_school
					}
					else_if = { limit = { PREV = { has_idea = officer_military_academy } }
						add_ideas = officer_military_academy
					}
					else_if = { limit = { PREV = { has_idea = officer_international_education } }
						add_ideas = officer_international_education
					}
					
					### Internal factions
					if = { limit = { PREV = { has_idea = small_medium_business_owners } }
						add_ideas = small_medium_business_owners
					}
					if = { limit = { PREV = { has_idea = international_bankers } }
						add_ideas = international_bankers
					}
					if = { limit = { PREV = { has_idea = fossil_fuel_industry } }
						add_ideas = fossil_fuel_industry
					}
					if = { limit = { PREV = { has_idea = industrial_conglomerates } }
						add_ideas = industrial_conglomerates
					}
					if = { limit = { PREV = { has_idea = oligarchs } }
						add_ideas = oligarchs
					}
					if = { limit = { PREV = { has_idea = maritime_industry } }
						add_ideas = maritime_industry
					}
					if = { limit = { PREV = { has_idea = defense_industry } }
						add_ideas = defense_industry
					}
					if = { limit = { PREV = { has_idea = the_military } }
						add_ideas = the_military
					}
					if = { limit = { PREV = { has_idea = intelligence_community } }
						add_ideas = intelligence_community
					}
					if = { limit = { PREV = { has_idea = labour_unions } }
						add_ideas = labour_unions
					}
					if = { limit = { PREV = { has_idea = landowners } }
						add_ideas = landowners
					}
					if = { limit = { PREV = { has_idea = farmers } }
						add_ideas = farmers
					}
					if = {
						limit = { 
							PREV = {
								has_idea = communist_cadres
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 4 }
										is_in_array = { ruling_party = 19 }
									}
								}
							}
						}
						add_ideas = communist_cadres
					}
					if = { limit = { PREV = { has_idea = the_priesthood } }
						add_ideas = the_priesthood
					}
					if = { limit = { PREV = { has_idea = The_Ulema } }
						add_ideas = The_Ulema
					}
					if = { limit = { PREV = { has_idea = The_Clergy } }
						add_ideas = The_Clergy
					}
					if = { limit = { PREV = { has_idea = wahabi_ulema } }
						add_ideas = wahabi_ulema
					}
					if = { limit = { PREV = { has_idea = the_donju } }
						add_ideas = the_donju
					}
					if = { limit = { PREV = { has_idea = the_bazaar } }
						add_ideas = the_bazaar
					}
					if = {
						limit = { 
							PREV = {
								has_idea = saudi_royal_family
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 10 }
										is_in_array = { ruling_party = 23 }
										is_in_array = { ruling_party = 0 }
									}
								}
							}
						}
						add_ideas = saudi_royal_family
					}
					if = {
						limit = { 
							PREV = {
								has_idea = irgc
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = irgc
					}
					if = {
						limit = { 
							PREV = {
								has_idea = iranian_quds_force
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = iranian_quds_force
					}
					if = {
						limit = { 
							PREV = {
								has_idea = vevak
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = vevak
					}
					if = {
						limit = { 
							PREV = {
								has_idea = foreign_jihadis
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 11 }
									}
								}
							}
						}
						add_ideas = foreign_jihadis
					}
					if = { limit = { PREV = { has_idea = isi_pakistan } }
						add_ideas = isi_pakistan
					}
					if = { limit = { PREV = { has_idea = wall_street } }
						add_ideas = wall_street
					}
					if = { limit = { PREV = { has_idea = chaebols } }
						add_ideas = chaebols
					}
					#copy leader throughput
					set_variable = { Western_Autocracy_leader = PREV.Western_Autocracy_leader?0 }
					set_variable = { conservatism_leader = PREV.conservatism_leader?0 }
					set_variable = { liberalism_leader = PREV.liberalism_leader?0 }
					set_variable = { socialism_leader = PREV.socialism_leader?0 }
					
					set_variable = { Communist-State_leader = PREV.Communist-State_leader?0 }
					set_variable = { anarchist_communism_leader = PREV.anarchist_communism_leader?0 }
					set_variable = { Conservative_leader = PREV.Conservative_leader?0 }
					set_variable = { Autocracy_leader = PREV.Autocracy_leader?0 }
					set_variable = { Mod_Vilayat_e_Faqih_leader = PREV.Mod_Vilayat_e_Faqih_leader?0 }
					set_variable = { Vilayat_e_Faqih_leader = PREV.Vilayat_e_Faqih_leader?0 }
					
					set_variable = { Kingdom_leader = PREV.Kingdom_leader?0 }
					set_variable = { Caliphate_leader = PREV.Caliphate_leader?0 }
					
					set_variable = { Neutral_Muslim_Brotherhood_leader = PREV.Neutral_Muslim_Brotherhood_leader?0 }
					set_variable = { Neutral_Autocracy_leader = PREV.Neutral_Autocracy_leader?0 }
					set_variable = { Neutral_conservatism_leader = PREV.Neutral_conservatism_leader?0 }
					set_variable = { oligarchism_leader = PREV.oligarchism_leader?0 }
					set_variable = { Neutral_Libertarian_leader = PREV.Neutral_Libertarian_leader?0 }
					set_variable = { Neutral_green_leader = PREV.Neutral_green_leader?0 }
					set_variable = { neutral_Social_leader = PREV.neutral_Social_leader?0 }
					set_variable = { Neutral_Communism_leader = PREV.Neutral_Communism_leader?0 }
					set_variable = { Nat_Populism_leader = PREV.Nat_Populism_leader?0 }
					set_variable = { Nat_Fascism_leader = PREV.Nat_Fascism_leader?0 }
					set_variable = { Nat_Autocracy_leader = PREV.Nat_Autocracy_leader?0 }
					set_variable = { Monarchist_leader = PREV.Monarchist_leader?0 }
					
					add_tax_laws = yes
					calculate_influence_percentage = yes #set alignment drifts from influence
					startup_extra_setup = yes 	#money system
					setup_init_factions = yes 	#flags for int. factions
					init_neighbor_drift_1 = yes #drift from neighbor
					init_neighbor_drift_2 = yes #drift from neighbor
					
					country_event = { id = brotherhood.0 } #Sets muslim_brotherhood relations
					country_event = { id = brotherhood.2 }
				}
				
				#For player:
				
				set_politics = {
					ruling_party = nationalist
					elections_allowed = no
				}
				add_popularity = {
						ideology = nationalist
						popularity = 0.5
				}
				hidden_effect = {
					start_politics_input = yes
					add_to_array = { ruling_party = 21 } #fascists
					set_variable = { party_pop_array^21 = 0.7 } #generate the rest
					startup_politics = yes
				}
				
				#Switch to fascist leader
					set_country_flag = set_Nat_Fascism
					set_leader = yes
				
				log = "[GetDateText]: [This.GetName]: communist_state_extremist_civil_war setup finished"
			}
		}
	}
	
	monarchist_extremist_civil_war = {
		icon = revolt
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		visible = {
			check_variable = { party_pop_array^23 > 0.10 } #significant fascism
			has_civil_war = no
			NOT = {
				OR = {
					is_in_array = { gov_coalition_array = 23 } #not is in coalition
					is_in_array = { ruling_party = 23 } #not is ruling party
				}
			}
		}
		available = {
			NOT = {
				has_government = nationalist
			}
			custom_trigger_tooltip = {
				tooltip = monarchist_20_tt	
				check_variable = { party_pop_array^23 > 0.2 }
			}
		}
		complete_effect = {
		
			hidden_effect = {
				#Release copy of existing
				set_country_flag = no_leader_change
				if = {
					limit = {
						has_government = nationalist
					}
					start_civil_war = {
						ideology = nationalist
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = communism
					}
					start_civil_war = {
						ideology = communism
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = democratic
					}
					start_civil_war = {
						ideology = democratic
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = neutrality
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = fascism
					}
					start_civil_war = {
						ideology = fascism
						size = 0.5
					}
				}
				clr_country_flag = no_leader_change
				
				#replicating current politics
				random_other_country = {
					limit = {
						original_tag = PREV
						NOT = { TAG = PREV }
					}
					set_temp_variable = { temp_democratic = PREV.party_popularity@democratic }
					multiply_temp_variable = { temp_democratic = 100 }
					set_temp_variable = { temp_total = temp_democratic }
					set_temp_variable = { temp_communism = PREV.party_popularity@communism }
					multiply_temp_variable = { temp_communism = 100 }
					add_to_temp_variable = { temp_total = temp_communism }
					set_temp_variable = { temp_neutrality = PREV.party_popularity@neutrality }
					multiply_temp_variable = { temp_neutrality = 100 }
					add_to_temp_variable = { temp_total = temp_neutrality }
					set_temp_variable = { temp_fascism = PREV.party_popularity@fascism }
					multiply_temp_variable = { temp_fascism = 100 }
					add_to_temp_variable = { temp_total = temp_fascism }
					set_temp_variable = { temp_nationalist = PREV.party_popularity@nationalist }
					multiply_temp_variable = { temp_nationalist = 100 }
					add_to_temp_variable = { temp_total = temp_nationalist }
					subtract_from_temp_variable = { temp_total = 100 }
					multiply_temp_variable = { temp_total = -1 }
					add_to_temp_variable = { temp_nationalist = temp_total }
					
					set_popularities = {
						democratic = temp_democratic
						communism = temp_communism
						neutrality = temp_neutrality
						fascism = temp_fascism
						nationalist = temp_nationalist
					}
					add_popularity = {
						ideology = nationalist
						popularity = -0.2
					}
					start_politics_input = yes
					#copy politics
					for_loop_effect = {
						end = party_pop_array^num
						value = v
						set_variable = { party_pop_array^v = PREV.party_pop_array^v }
					}
					add_to_array = { ruling_party = PREV.ruling_party^0 }
					for_loop_effect = {
						end = gov_coalition_array^num
						value = v
						add_to_array = { gov_coalition_array = PREV.gov_coalition_array^v }
					}
					set_variable = { party_pop_array^23 = 0.01 } #all moved to fight ;) 
					set_variable = { party_pop_elect_array^23 = 0 } #made illegal
					add_up_party_totals = yes
					set_party_positions = yes
					startup_politics = yes
					
					#VARIABLES
					set_variable = { tax_rate = PREV.tax_rate }
					set_variable = { treasury = PREV.treasury }
					
					#don't get values of original yet - REMINDER -> add it on_civil_war_end
					set_variable = { debt = 0 }
					set_variable = { int_investments = 0 }
					
					#influence
					set_variable = { domestic_influence_amount = PREV.domestic_influence_amount }
					#just copy all
					for_loop_effect = {
						end = PREV.influence_array^num
						value = v
						
						add_to_array = { influence_array = PREV.influence_array^v }
						add_to_array = { influence_array_val = PREV.influence_array_val^v }
					}
					recalculate_influence = yes
					
					#GAME VARIABLES
					add_political_power = PREV.political_power
					add_political_power = 400 #bonus
					
					#LAWS
					set_variable = { gdp_capita = PREV.gdp_capita }
					meta_effect = {
						text = {
							add_ideas = gdp_[GDP_LEVEL]
						}
						GDP_LEVEL = "[?gdp_capita|0]"
					}
					set_variable = { bureaucracy = PREV.bureaucracy }
					meta_effect = {
						text = {
							add_ideas = bureau_0[BUREAU_LEVEL]
						}
						BUREAU_LEVEL = "[?bureaucracy|0]"
					}
					set_variable = { crime_fighting = PREV.crime_fighting }
					meta_effect = {
						text = {
							add_ideas = police_0[POLICE_LEVEL]
						}
						POLICE_LEVEL = "[?crime_fighting|0]"
					}
					set_variable = { education_budget = PREV.education_budget }
					meta_effect = {
						text = {
							add_ideas = edu_0[EDU_LEVEL]
						}
						EDU_LEVEL = "[?education_budget|0]"
					}
					set_variable = { health_budget = PREV.health_budget }
					meta_effect = {
						text = {
							add_ideas = health_0[HEALTH_LEVEL]
						}
						HEALTH_LEVEL = "[?health_budget|0]"
					}
					set_variable = { social_budget = PREV.social_budget }
					meta_effect = {
						text = {
							add_ideas = social_0[WELFARE_LEVEL]
						}
						WELFARE_LEVEL = "[?social_budget|0]"
					}
					
					set_variable = { Military_Spending = PREV.Military_Spending }
					subtract_from_variable = { Military_Spending = 1 }
					meta_effect = {
						text = {
							add_ideas = defence_0[DEFENCE_LEVEL]
						}
						DEFENCE_LEVEL = "[?Military_Spending|0]"
					}
					set_variable = { Military_Spending = PREV.Military_Spending }
					
					set_variable = { economic_cycles = PREV.economic_cycles }
					if = { limit = { check_variable = { economic_cycles = 6 } }
						add_ideas = depression
					}
					else_if = { limit = { check_variable = { economic_cycles = 5 } }
						add_ideas = recession
					}
					else_if = { limit = { check_variable = { economic_cycles = 4 } }
						add_ideas = stagnation
					}
					else_if = { limit = { check_variable = { economic_cycles = 3 } }
						add_ideas = stable_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 2 } }
						add_ideas = fast_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 1 } }
						add_ideas = economic_boom
					}
					
					if = { limit = { PREV = { has_idea = paralyzing_corruption } }
						add_ideas = paralyzing_corruption
					}
					else_if = { limit = { PREV = { has_idea = crippling_corruption } }
						add_ideas = crippling_corruption
					}
					else_if = { limit = { PREV = { has_idea = rampant_corruption } }
						add_ideas = rampant_corruption
					}
					else_if = { limit = { PREV = { has_idea = unrestrained_corruption } }
						add_ideas = unrestrained_corruption
					}
					else_if = { limit = { PREV = { has_idea = systematic_corruption } }
						add_ideas = systematic_corruption
					}
					else_if = { limit = { PREV = { has_idea = widespread_corruption } }
						add_ideas = widespread_corruption
					}
					else_if = { limit = { PREV = { has_idea = medium_corruption } }
						add_ideas = medium_corruption
					}
					else_if = { limit = { PREV = { has_idea = modest_corruption } }
						add_ideas = modest_corruption
					}
					else_if = { limit = { PREV = { has_idea = slight_corruption } }
						add_ideas = slight_corruption
					}
					else_if = { limit = { PREV = { has_idea = negligible_corruption } }
						add_ideas = negligible_corruption
					}
					
					if = { limit = { PREV = { has_idea = consumption_economy } }
						add_ideas = consumption_economy
					}
					else_if = { limit = { PREV = { has_idea = mixed_economy } }
						add_ideas = mixed_economy
					}
					else_if = { limit = { PREV = { has_idea = export_economy } }
						add_ideas = export_economy
					}
					
					if = { limit = { PREV = { has_idea = no_military } }
						add_ideas = no_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_army } }
						add_ideas = volunteer_army
					}
					else_if = { limit = { PREV = { has_idea = partial_draft_army } }
						add_ideas = partial_draft_army
					}
					else_if = { limit = { PREV = { has_idea = draft_army } }
						add_ideas = draft_army
					}
					
					if = { limit = { PREV = { has_idea = no_women_in_military } }
						add_ideas = no_women_in_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_women } }
						add_ideas = volunteer_women
					}
					else_if = { limit = { PREV = { has_idea = drafted_women } }
						add_ideas = drafted_women
					}
					
					if = { limit = { PREV = { has_idea = intervention_isolation } }
						add_ideas = intervention_isolation
					}
					else_if = { limit = { PREV = { has_idea = intervention_local_security } }
						add_ideas = intervention_local_security
					}
					else_if = { limit = { PREV = { has_idea = intervention_limited_interventionism } }
						add_ideas = intervention_limited_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_regional_interventionism } }
						add_ideas = intervention_regional_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_global_interventionism } }
						add_ideas = intervention_global_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_neo_imperialism } }
						add_ideas = intervention_neo_imperialism
					}
					
					if = { limit = { PREV = { has_idea = officer_baptism_by_fire } }
						add_ideas = officer_baptism_by_fire
					}
					else_if = { limit = { PREV = { has_idea = officer_basic_training } }
						add_ideas = officer_basic_training
					}
					else_if = { limit = { PREV = { has_idea = officer_advanced_training } }
						add_ideas = officer_advanced_training
					}
					else_if = { limit = { PREV = { has_idea = officer_military_school } }
						add_ideas = officer_military_school
					}
					else_if = { limit = { PREV = { has_idea = officer_military_academy } }
						add_ideas = officer_military_academy
					}
					else_if = { limit = { PREV = { has_idea = officer_international_education } }
						add_ideas = officer_international_education
					}
					
					### Internal factions
					if = { limit = { PREV = { has_idea = small_medium_business_owners } }
						add_ideas = small_medium_business_owners
					}
					if = { limit = { PREV = { has_idea = international_bankers } }
						add_ideas = international_bankers
					}
					if = { limit = { PREV = { has_idea = fossil_fuel_industry } }
						add_ideas = fossil_fuel_industry
					}
					if = { limit = { PREV = { has_idea = industrial_conglomerates } }
						add_ideas = industrial_conglomerates
					}
					if = { limit = { PREV = { has_idea = oligarchs } }
						add_ideas = oligarchs
					}
					if = { limit = { PREV = { has_idea = maritime_industry } }
						add_ideas = maritime_industry
					}
					if = { limit = { PREV = { has_idea = defense_industry } }
						add_ideas = defense_industry
					}
					if = { limit = { PREV = { has_idea = the_military } }
						add_ideas = the_military
					}
					if = { limit = { PREV = { has_idea = intelligence_community } }
						add_ideas = intelligence_community
					}
					if = { limit = { PREV = { has_idea = labour_unions } }
						add_ideas = labour_unions
					}
					if = { limit = { PREV = { has_idea = landowners } }
						add_ideas = landowners
					}
					if = { limit = { PREV = { has_idea = farmers } }
						add_ideas = farmers
					}
					if = {
						limit = { 
							PREV = {
								has_idea = communist_cadres
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 4 }
										is_in_array = { ruling_party = 19 }
									}
								}
							}
						}
						add_ideas = communist_cadres
					}
					if = { limit = { PREV = { has_idea = the_priesthood } }
						add_ideas = the_priesthood
					}
					if = { limit = { PREV = { has_idea = The_Ulema } }
						add_ideas = The_Ulema
					}
					if = { limit = { PREV = { has_idea = The_Clergy } }
						add_ideas = The_Clergy
					}
					if = { limit = { PREV = { has_idea = wahabi_ulema } }
						add_ideas = wahabi_ulema
					}
					if = { limit = { PREV = { has_idea = the_donju } }
						add_ideas = the_donju
					}
					if = { limit = { PREV = { has_idea = the_bazaar } }
						add_ideas = the_bazaar
					}
					if = {
						limit = { 
							PREV = {
								has_idea = saudi_royal_family
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 10 }
										is_in_array = { ruling_party = 23 }
										is_in_array = { ruling_party = 0 }
									}
								}
							}
						}
						add_ideas = saudi_royal_family
					}
					if = {
						limit = { 
							PREV = {
								has_idea = irgc
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = irgc
					}
					if = {
						limit = { 
							PREV = {
								has_idea = iranian_quds_force
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = iranian_quds_force
					}
					if = {
						limit = { 
							PREV = {
								has_idea = vevak
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = vevak
					}
					if = {
						limit = { 
							PREV = {
								has_idea = foreign_jihadis
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 11 }
									}
								}
							}
						}
						add_ideas = foreign_jihadis
					}
					if = { limit = { PREV = { has_idea = isi_pakistan } }
						add_ideas = isi_pakistan
					}
					if = { limit = { PREV = { has_idea = wall_street } }
						add_ideas = wall_street
					}
					if = { limit = { PREV = { has_idea = chaebols } }
						add_ideas = chaebols
					}
					
					#copy leader throughput
					set_variable = { Western_Autocracy_leader = PREV.Western_Autocracy_leader?0 }
					set_variable = { conservatism_leader = PREV.conservatism_leader?0 }
					set_variable = { liberalism_leader = PREV.liberalism_leader?0 }
					set_variable = { socialism_leader = PREV.socialism_leader?0 }
					
					set_variable = { Communist-State_leader = PREV.Communist-State_leader?0 }
					set_variable = { anarchist_communism_leader = PREV.anarchist_communism_leader?0 }
					set_variable = { Conservative_leader = PREV.Conservative_leader?0 }
					set_variable = { Autocracy_leader = PREV.Autocracy_leader?0 }
					set_variable = { Mod_Vilayat_e_Faqih_leader = PREV.Mod_Vilayat_e_Faqih_leader?0 }
					set_variable = { Vilayat_e_Faqih_leader = PREV.Vilayat_e_Faqih_leader?0 }
					
					set_variable = { Kingdom_leader = PREV.Kingdom_leader?0 }
					set_variable = { Caliphate_leader = PREV.Caliphate_leader?0 }
					
					set_variable = { Neutral_Muslim_Brotherhood_leader = PREV.Neutral_Muslim_Brotherhood_leader?0 }
					set_variable = { Neutral_Autocracy_leader = PREV.Neutral_Autocracy_leader?0 }
					set_variable = { Neutral_conservatism_leader = PREV.Neutral_conservatism_leader?0 }
					set_variable = { oligarchism_leader = PREV.oligarchism_leader?0 }
					set_variable = { Neutral_Libertarian_leader = PREV.Neutral_Libertarian_leader?0 }
					set_variable = { Neutral_green_leader = PREV.Neutral_green_leader?0 }
					set_variable = { neutral_Social_leader = PREV.neutral_Social_leader?0 }
					set_variable = { Neutral_Communism_leader = PREV.Neutral_Communism_leader?0 }
					set_variable = { Nat_Populism_leader = PREV.Nat_Populism_leader?0 }
					set_variable = { Nat_Fascism_leader = PREV.Nat_Fascism_leader?0 }
					set_variable = { Nat_Autocracy_leader = PREV.Nat_Autocracy_leader?0 }
					set_variable = { Monarchist_leader = PREV.Monarchist_leader?0 }
					
					add_tax_laws = yes
					calculate_influence_percentage = yes #set alignment drifts from influence
					startup_extra_setup = yes 	#money system
					setup_init_factions = yes 	#flags for int. factions
					init_neighbor_drift_1 = yes #drift from neighbor
					init_neighbor_drift_2 = yes #drift from neighbor
					
					country_event = { id = brotherhood.0 } #Sets muslim_brotherhood relations
					country_event = { id = brotherhood.2 }
				}
				
				#For player:
				
				set_politics = {
					ruling_party = nationalist
					elections_allowed = no
				}
				add_popularity = {
						ideology = nationalist
						popularity = 0.5
				}
				hidden_effect = {
					start_politics_input = yes
					add_to_array = { ruling_party = 23 } #monarchist
					set_variable = { party_pop_array^23 = 0.7 } #generate the rest
					startup_politics = yes
				}
				
				#Switch to monarchist leader
					set_country_flag = set_Monarchist
					set_leader = yes
				
				log = "[GetDateText]: [This.GetName]: communist_state_extremist_civil_war setup finished"
			}
		}
	}
	
	caliphate_extremist_civil_war = {
		icon = revolt
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		visible = {
			check_variable = { party_pop_array^11 > 0.10 } #significant jihadist
			has_civil_war = no
			NOT = {
				OR = {
					is_in_array = { gov_coalition_array = 11 } #not is in coalition
					is_in_array = { ruling_party = 11 } #not is ruling party
				}
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = caliphate_20_tt	
				check_variable = { party_pop_array^11 > 0.2 }
			}
		}
		
		complete_effect = {
		
			hidden_effect = {
				#Release copy of existing
				set_country_flag = no_leader_change
				if = {
					limit = {
						has_government = nationalist
					}
					start_civil_war = {
						ideology = nationalist
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = communism
					}
					start_civil_war = {
						ideology = communism
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = democratic
					}
					start_civil_war = {
						ideology = democratic
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = neutrality
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = fascism
					}
					start_civil_war = {
						ideology = fascism
						size = 0.5
					}
				}
				clr_country_flag = no_leader_change
				
				#replicating current politics
				random_other_country = {
					limit = {
						original_tag = PREV
						NOT = { TAG = PREV }
					}
					set_temp_variable = { temp_democratic = PREV.party_popularity@democratic }
					multiply_temp_variable = { temp_democratic = 100 }
					set_temp_variable = { temp_total = temp_democratic }
					set_temp_variable = { temp_communism = PREV.party_popularity@communism }
					multiply_temp_variable = { temp_communism = 100 }
					add_to_temp_variable = { temp_total = temp_communism }
					set_temp_variable = { temp_neutrality = PREV.party_popularity@neutrality }
					multiply_temp_variable = { temp_neutrality = 100 }
					add_to_temp_variable = { temp_total = temp_neutrality }
					set_temp_variable = { temp_fascism = PREV.party_popularity@fascism }
					multiply_temp_variable = { temp_fascism = 100 }
					add_to_temp_variable = { temp_total = temp_fascism }
					set_temp_variable = { temp_nationalist = PREV.party_popularity@nationalist }
					multiply_temp_variable = { temp_nationalist = 100 }
					add_to_temp_variable = { temp_total = temp_nationalist }
					subtract_from_temp_variable = { temp_total = 100 }
					multiply_temp_variable = { temp_total = -1 }
					add_to_temp_variable = { temp_nationalist = temp_total }
					
					set_popularities = {
						democratic = temp_democratic
						communism = temp_communism
						neutrality = temp_neutrality
						fascism = temp_fascism
						nationalist = temp_nationalist
					}
					add_popularity = {
						ideology = fascism
						popularity = -0.2
					}
					start_politics_input = yes
					#copy politics
					for_loop_effect = {
						end = party_pop_array^num
						value = v
						set_variable = { party_pop_array^v = PREV.party_pop_array^v }
					}
					add_to_array = { ruling_party = PREV.ruling_party^0 }
					for_loop_effect = {
						end = gov_coalition_array^num
						value = v
						add_to_array = { gov_coalition_array = PREV.gov_coalition_array^v }
					}
					set_variable = { party_pop_array^11 = 0.01 } #all moved to fight ;) 
					set_variable = { party_pop_elect_array^11 = 0 } #made illegal
					add_up_party_totals = yes
					set_party_positions = yes
					startup_politics = yes
					
					#VARIABLES
					set_variable = { tax_rate = PREV.tax_rate }
					set_variable = { treasury = PREV.treasury }
					
					#don't get values of original yet - REMINDER -> add it on_civil_war_end
					set_variable = { debt = 0 }
					set_variable = { int_investments = 0 }
					
					#influence
					set_variable = { domestic_influence_amount = PREV.domestic_influence_amount }
					#just copy all
					for_loop_effect = {
						end = PREV.influence_array^num
						value = v
						
						add_to_array = { influence_array = PREV.influence_array^v }
						add_to_array = { influence_array_val = PREV.influence_array_val^v }
					}
					recalculate_influence = yes
					
					#GAME VARIABLES
					add_political_power = PREV.political_power
					add_political_power = 400 #bonus
					
					#LAWS
					set_variable = { gdp_capita = PREV.gdp_capita }
					meta_effect = {
						text = {
							add_ideas = gdp_[GDP_LEVEL]
						}
						GDP_LEVEL = "[?gdp_capita|0]"
					}
					set_variable = { bureaucracy = PREV.bureaucracy }
					meta_effect = {
						text = {
							add_ideas = bureau_0[BUREAU_LEVEL]
						}
						BUREAU_LEVEL = "[?bureaucracy|0]"
					}
					set_variable = { crime_fighting = PREV.crime_fighting }
					meta_effect = {
						text = {
							add_ideas = police_0[POLICE_LEVEL]
						}
						POLICE_LEVEL = "[?crime_fighting|0]"
					}
					set_variable = { education_budget = PREV.education_budget }
					meta_effect = {
						text = {
							add_ideas = edu_0[EDU_LEVEL]
						}
						EDU_LEVEL = "[?education_budget|0]"
					}
					set_variable = { health_budget = PREV.health_budget }
					meta_effect = {
						text = {
							add_ideas = health_0[HEALTH_LEVEL]
						}
						HEALTH_LEVEL = "[?health_budget|0]"
					}
					set_variable = { social_budget = PREV.social_budget }
					meta_effect = {
						text = {
							add_ideas = social_0[WELFARE_LEVEL]
						}
						WELFARE_LEVEL = "[?social_budget|0]"
					}
					
					set_variable = { Military_Spending = PREV.Military_Spending }
					subtract_from_variable = { Military_Spending = 1 }
					meta_effect = {
						text = {
							add_ideas = defence_0[DEFENCE_LEVEL]
						}
						DEFENCE_LEVEL = "[?Military_Spending|0]"
					}
					set_variable = { Military_Spending = PREV.Military_Spending }
					
					set_variable = { economic_cycles = PREV.economic_cycles }
					if = { limit = { check_variable = { economic_cycles = 6 } }
						add_ideas = depression
					}
					else_if = { limit = { check_variable = { economic_cycles = 5 } }
						add_ideas = recession
					}
					else_if = { limit = { check_variable = { economic_cycles = 4 } }
						add_ideas = stagnation
					}
					else_if = { limit = { check_variable = { economic_cycles = 3 } }
						add_ideas = stable_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 2 } }
						add_ideas = fast_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 1 } }
						add_ideas = economic_boom
					}
					
					if = { limit = { PREV = { has_idea = paralyzing_corruption } }
						add_ideas = paralyzing_corruption
					}
					else_if = { limit = { PREV = { has_idea = crippling_corruption } }
						add_ideas = crippling_corruption
					}
					else_if = { limit = { PREV = { has_idea = rampant_corruption } }
						add_ideas = rampant_corruption
					}
					else_if = { limit = { PREV = { has_idea = unrestrained_corruption } }
						add_ideas = unrestrained_corruption
					}
					else_if = { limit = { PREV = { has_idea = systematic_corruption } }
						add_ideas = systematic_corruption
					}
					else_if = { limit = { PREV = { has_idea = widespread_corruption } }
						add_ideas = widespread_corruption
					}
					else_if = { limit = { PREV = { has_idea = medium_corruption } }
						add_ideas = medium_corruption
					}
					else_if = { limit = { PREV = { has_idea = modest_corruption } }
						add_ideas = modest_corruption
					}
					else_if = { limit = { PREV = { has_idea = slight_corruption } }
						add_ideas = slight_corruption
					}
					else_if = { limit = { PREV = { has_idea = negligible_corruption } }
						add_ideas = negligible_corruption
					}
					
					if = { limit = { PREV = { has_idea = consumption_economy } }
						add_ideas = consumption_economy
					}
					else_if = { limit = { PREV = { has_idea = mixed_economy } }
						add_ideas = mixed_economy
					}
					else_if = { limit = { PREV = { has_idea = export_economy } }
						add_ideas = export_economy
					}
					
					if = { limit = { PREV = { has_idea = no_military } }
						add_ideas = no_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_army } }
						add_ideas = volunteer_army
					}
					else_if = { limit = { PREV = { has_idea = partial_draft_army } }
						add_ideas = partial_draft_army
					}
					else_if = { limit = { PREV = { has_idea = draft_army } }
						add_ideas = draft_army
					}
					
					if = { limit = { PREV = { has_idea = no_women_in_military } }
						add_ideas = no_women_in_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_women } }
						add_ideas = volunteer_women
					}
					else_if = { limit = { PREV = { has_idea = drafted_women } }
						add_ideas = drafted_women
					}
					
					if = { limit = { PREV = { has_idea = intervention_isolation } }
						add_ideas = intervention_isolation
					}
					else_if = { limit = { PREV = { has_idea = intervention_local_security } }
						add_ideas = intervention_local_security
					}
					else_if = { limit = { PREV = { has_idea = intervention_limited_interventionism } }
						add_ideas = intervention_limited_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_regional_interventionism } }
						add_ideas = intervention_regional_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_global_interventionism } }
						add_ideas = intervention_global_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_neo_imperialism } }
						add_ideas = intervention_neo_imperialism
					}
					
					if = { limit = { PREV = { has_idea = officer_baptism_by_fire } }
						add_ideas = officer_baptism_by_fire
					}
					else_if = { limit = { PREV = { has_idea = officer_basic_training } }
						add_ideas = officer_basic_training
					}
					else_if = { limit = { PREV = { has_idea = officer_advanced_training } }
						add_ideas = officer_advanced_training
					}
					else_if = { limit = { PREV = { has_idea = officer_military_school } }
						add_ideas = officer_military_school
					}
					else_if = { limit = { PREV = { has_idea = officer_military_academy } }
						add_ideas = officer_military_academy
					}
					else_if = { limit = { PREV = { has_idea = officer_international_education } }
						add_ideas = officer_international_education
					}
					
					### Internal factions
					if = { limit = { PREV = { has_idea = small_medium_business_owners } }
						add_ideas = small_medium_business_owners
					}
					if = { limit = { PREV = { has_idea = international_bankers } }
						add_ideas = international_bankers
					}
					if = { limit = { PREV = { has_idea = fossil_fuel_industry } }
						add_ideas = fossil_fuel_industry
					}
					if = { limit = { PREV = { has_idea = industrial_conglomerates } }
						add_ideas = industrial_conglomerates
					}
					if = { limit = { PREV = { has_idea = oligarchs } }
						add_ideas = oligarchs
					}
					if = { limit = { PREV = { has_idea = maritime_industry } }
						add_ideas = maritime_industry
					}
					if = { limit = { PREV = { has_idea = defense_industry } }
						add_ideas = defense_industry
					}
					if = { limit = { PREV = { has_idea = the_military } }
						add_ideas = the_military
					}
					if = { limit = { PREV = { has_idea = intelligence_community } }
						add_ideas = intelligence_community
					}
					if = { limit = { PREV = { has_idea = labour_unions } }
						add_ideas = labour_unions
					}
					if = { limit = { PREV = { has_idea = landowners } }
						add_ideas = landowners
					}
					if = { limit = { PREV = { has_idea = farmers } }
						add_ideas = farmers
					}
					if = {
						limit = { 
							PREV = {
								has_idea = communist_cadres
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 4 }
										is_in_array = { ruling_party = 19 }
									}
								}
							}
						}
						add_ideas = communist_cadres
					}
					if = { limit = { PREV = { has_idea = the_priesthood } }
						add_ideas = the_priesthood
					}
					if = { limit = { PREV = { has_idea = The_Ulema } }
						add_ideas = The_Ulema
					}
					if = { limit = { PREV = { has_idea = The_Clergy } }
						add_ideas = The_Clergy
					}
					if = { limit = { PREV = { has_idea = wahabi_ulema } }
						add_ideas = wahabi_ulema
					}
					if = { limit = { PREV = { has_idea = the_donju } }
						add_ideas = the_donju
					}
					if = { limit = { PREV = { has_idea = the_bazaar } }
						add_ideas = the_bazaar
					}
					if = {
						limit = { 
							PREV = {
								has_idea = saudi_royal_family
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 10 }
										is_in_array = { ruling_party = 23 }
										is_in_array = { ruling_party = 0 }
									}
								}
							}
						}
						add_ideas = saudi_royal_family
					}
					if = {
						limit = { 
							PREV = {
								has_idea = irgc
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = irgc
					}
					if = {
						limit = { 
							PREV = {
								has_idea = iranian_quds_force
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = iranian_quds_force
					}
					if = {
						limit = { 
							PREV = {
								has_idea = vevak
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = vevak
					}
					if = {
						limit = { 
							PREV = {
								has_idea = foreign_jihadis
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 11 }
									}
								}
							}
						}
						add_ideas = foreign_jihadis
					}
					if = { limit = { PREV = { has_idea = isi_pakistan } }
						add_ideas = isi_pakistan
					}
					if = { limit = { PREV = { has_idea = wall_street } }
						add_ideas = wall_street
					}
					if = { limit = { PREV = { has_idea = chaebols } }
						add_ideas = chaebols
					}
					
					#copy leader throughput
					set_variable = { Western_Autocracy_leader = PREV.Western_Autocracy_leader?0 }
					set_variable = { conservatism_leader = PREV.conservatism_leader?0 }
					set_variable = { liberalism_leader = PREV.liberalism_leader?0 }
					set_variable = { socialism_leader = PREV.socialism_leader?0 }
					
					set_variable = { Communist-State_leader = PREV.Communist-State_leader?0 }
					set_variable = { anarchist_communism_leader = PREV.anarchist_communism_leader?0 }
					set_variable = { Conservative_leader = PREV.Conservative_leader?0 }
					set_variable = { Autocracy_leader = PREV.Autocracy_leader?0 }
					set_variable = { Mod_Vilayat_e_Faqih_leader = PREV.Mod_Vilayat_e_Faqih_leader?0 }
					set_variable = { Vilayat_e_Faqih_leader = PREV.Vilayat_e_Faqih_leader?0 }
					
					set_variable = { Kingdom_leader = PREV.Kingdom_leader?0 }
					set_variable = { Caliphate_leader = PREV.Caliphate_leader?0 }
					
					set_variable = { Neutral_Muslim_Brotherhood_leader = PREV.Neutral_Muslim_Brotherhood_leader?0 }
					set_variable = { Neutral_Autocracy_leader = PREV.Neutral_Autocracy_leader?0 }
					set_variable = { Neutral_conservatism_leader = PREV.Neutral_conservatism_leader?0 }
					set_variable = { oligarchism_leader = PREV.oligarchism_leader?0 }
					set_variable = { Neutral_Libertarian_leader = PREV.Neutral_Libertarian_leader?0 }
					set_variable = { Neutral_green_leader = PREV.Neutral_green_leader?0 }
					set_variable = { neutral_Social_leader = PREV.neutral_Social_leader?0 }
					set_variable = { Neutral_Communism_leader = PREV.Neutral_Communism_leader?0 }
					set_variable = { Nat_Populism_leader = PREV.Nat_Populism_leader?0 }
					set_variable = { Nat_Fascism_leader = PREV.Nat_Fascism_leader?0 }
					set_variable = { Nat_Autocracy_leader = PREV.Nat_Autocracy_leader?0 }
					set_variable = { Monarchist_leader = PREV.Monarchist_leader?0 }
					
					add_tax_laws = yes
					calculate_influence_percentage = yes #set alignment drifts from influence
					startup_extra_setup = yes 	#money system
					setup_init_factions = yes 	#flags for int. factions
					init_neighbor_drift_1 = yes #drift from neighbor
					init_neighbor_drift_2 = yes #drift from neighbor
					
					country_event = { id = brotherhood.0 } #Sets muslim_brotherhood relations
					country_event = { id = brotherhood.2 }
				}
				
				#For player:
				
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				add_popularity = {
						ideology = fascism
						popularity = 0.5
				}
				hidden_effect = {
					start_politics_input = yes
					add_to_array = { ruling_party = 11 } #jihadist
					set_variable = { party_pop_array^11 = 0.9 } #generate the rest
					startup_politics = yes
				}
				
				#Switch to fascist leader
					set_country_flag = set_Caliphate
					set_leader = yes
				
				log = "[GetDateText]: [This.GetName]: communist_state_extremist_civil_war setup finished"
			}
		}
	}
	
	communist_state_extremist_civil_war = {
		icon = revolt
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		visible = {
			check_variable = { party_pop_array^4 > 0.10 } #significant communism
			has_civil_war = no
			NOT = {
				OR = {
					OR = {
						is_in_array = { gov_coalition_array = 4 } #not is in coalition
						is_in_array = { ruling_party = 4 } #not is ruling party
					}
					#not already communist
					OR = {
						is_in_array = { gov_coalition_array = 19 } #not is in coalition
						is_in_array = { ruling_party = 19 } #not is ruling party
					}
				}
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = communist_state_20_tt	
				check_variable = { party_pop_array^4 > 0.2 }
			}
		}
		
		complete_effect = {
		
			hidden_effect = {
				#Release copy of existing
				set_country_flag = no_leader_change
				if = {
					limit = {
						has_government = nationalist
					}
					start_civil_war = {
						ideology = nationalist
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = communism
					}
					start_civil_war = {
						ideology = communism
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = democratic
					}
					start_civil_war = {
						ideology = democratic
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = neutrality
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = fascism
					}
					start_civil_war = {
						ideology = fascism
						size = 0.5
					}
				}
				clr_country_flag = no_leader_change
				
				#replicating current politics
				random_other_country = {
					limit = {
						original_tag = PREV
						NOT = { TAG = PREV }
					}
					set_temp_variable = { temp_democratic = PREV.party_popularity@democratic }
					multiply_temp_variable = { temp_democratic = 100 }
					set_temp_variable = { temp_total = temp_democratic }
					set_temp_variable = { temp_communism = PREV.party_popularity@communism }
					multiply_temp_variable = { temp_communism = 100 }
					add_to_temp_variable = { temp_total = temp_communism }
					set_temp_variable = { temp_neutrality = PREV.party_popularity@neutrality }
					multiply_temp_variable = { temp_neutrality = 100 }
					add_to_temp_variable = { temp_total = temp_neutrality }
					set_temp_variable = { temp_fascism = PREV.party_popularity@fascism }
					multiply_temp_variable = { temp_fascism = 100 }
					add_to_temp_variable = { temp_total = temp_fascism }
					set_temp_variable = { temp_nationalist = PREV.party_popularity@nationalist }
					multiply_temp_variable = { temp_nationalist = 100 }
					add_to_temp_variable = { temp_total = temp_nationalist }
					subtract_from_temp_variable = { temp_total = 100 }
					multiply_temp_variable = { temp_total = -1 }
					add_to_temp_variable = { temp_nationalist = temp_total }
					
					set_popularities = {
						democratic = temp_democratic
						communism = temp_communism
						neutrality = temp_neutrality
						fascism = temp_fascism
						nationalist = temp_nationalist
					}
					add_popularity = {
						ideology = communism
						popularity = -0.1
					}
					start_politics_input = yes
					#copy politics
					for_loop_effect = {
						end = party_pop_array^num
						value = v
						set_variable = { party_pop_array^v = PREV.party_pop_array^v }
					}
					add_to_array = { ruling_party = PREV.ruling_party^0 }
					for_loop_effect = {
						end = gov_coalition_array^num
						value = v
						add_to_array = { gov_coalition_array = PREV.gov_coalition_array^v }
					}
					set_variable = { party_pop_array^4 = 0.01 } #all moved to fight ;) 
					set_variable = { party_pop_elect_array^4 = 0 } #made illegal
					add_up_party_totals = yes
					set_party_positions = yes
					startup_politics = yes
					
					#VARIABLES
					set_variable = { tax_rate = PREV.tax_rate }
					set_variable = { treasury = PREV.treasury }
					
					#don't get values of original yet - REMINDER -> add it on_civil_war_end
					set_variable = { debt = 0 }
					set_variable = { int_investments = 0 }
					
					#influence
					set_variable = { domestic_influence_amount = PREV.domestic_influence_amount }
					#just copy all
					for_loop_effect = {
						end = PREV.influence_array^num
						value = v
						
						add_to_array = { influence_array = PREV.influence_array^v }
						add_to_array = { influence_array_val = PREV.influence_array_val^v }
					}
					recalculate_influence = yes
					
					#GAME VARIABLES
					add_political_power = PREV.political_power
					add_political_power = 400 #bonus
					
					#LAWS
					set_variable = { gdp_capita = PREV.gdp_capita }
					meta_effect = {
						text = {
							add_ideas = gdp_[GDP_LEVEL]
						}
						GDP_LEVEL = "[?gdp_capita|0]"
					}
					set_variable = { bureaucracy = PREV.bureaucracy }
					meta_effect = {
						text = {
							add_ideas = bureau_0[BUREAU_LEVEL]
						}
						BUREAU_LEVEL = "[?bureaucracy|0]"
					}
					set_variable = { crime_fighting = PREV.crime_fighting }
					meta_effect = {
						text = {
							add_ideas = police_0[POLICE_LEVEL]
						}
						POLICE_LEVEL = "[?crime_fighting|0]"
					}
					set_variable = { education_budget = PREV.education_budget }
					meta_effect = {
						text = {
							add_ideas = edu_0[EDU_LEVEL]
						}
						EDU_LEVEL = "[?education_budget|0]"
					}
					set_variable = { health_budget = PREV.health_budget }
					meta_effect = {
						text = {
							add_ideas = health_0[HEALTH_LEVEL]
						}
						HEALTH_LEVEL = "[?health_budget|0]"
					}
					set_variable = { social_budget = PREV.social_budget }
					meta_effect = {
						text = {
							add_ideas = social_0[WELFARE_LEVEL]
						}
						WELFARE_LEVEL = "[?social_budget|0]"
					}
					
					set_variable = { Military_Spending = PREV.Military_Spending }
					subtract_from_variable = { Military_Spending = 1 }
					meta_effect = {
						text = {
							add_ideas = defence_0[DEFENCE_LEVEL]
						}
						DEFENCE_LEVEL = "[?Military_Spending|0]"
					}
					set_variable = { Military_Spending = PREV.Military_Spending }
					
					set_variable = { economic_cycles = PREV.economic_cycles }
					if = { limit = { check_variable = { economic_cycles = 6 } }
						add_ideas = depression
					}
					else_if = { limit = { check_variable = { economic_cycles = 5 } }
						add_ideas = recession
					}
					else_if = { limit = { check_variable = { economic_cycles = 4 } }
						add_ideas = stagnation
					}
					else_if = { limit = { check_variable = { economic_cycles = 3 } }
						add_ideas = stable_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 2 } }
						add_ideas = fast_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 1 } }
						add_ideas = economic_boom
					}
					
					if = { limit = { PREV = { has_idea = paralyzing_corruption } }
						add_ideas = paralyzing_corruption
					}
					else_if = { limit = { PREV = { has_idea = crippling_corruption } }
						add_ideas = crippling_corruption
					}
					else_if = { limit = { PREV = { has_idea = rampant_corruption } }
						add_ideas = rampant_corruption
					}
					else_if = { limit = { PREV = { has_idea = unrestrained_corruption } }
						add_ideas = unrestrained_corruption
					}
					else_if = { limit = { PREV = { has_idea = systematic_corruption } }
						add_ideas = systematic_corruption
					}
					else_if = { limit = { PREV = { has_idea = widespread_corruption } }
						add_ideas = widespread_corruption
					}
					else_if = { limit = { PREV = { has_idea = medium_corruption } }
						add_ideas = medium_corruption
					}
					else_if = { limit = { PREV = { has_idea = modest_corruption } }
						add_ideas = modest_corruption
					}
					else_if = { limit = { PREV = { has_idea = slight_corruption } }
						add_ideas = slight_corruption
					}
					else_if = { limit = { PREV = { has_idea = negligible_corruption } }
						add_ideas = negligible_corruption
					}
					
					if = { limit = { PREV = { has_idea = consumption_economy } }
						add_ideas = consumption_economy
					}
					else_if = { limit = { PREV = { has_idea = mixed_economy } }
						add_ideas = mixed_economy
					}
					else_if = { limit = { PREV = { has_idea = export_economy } }
						add_ideas = export_economy
					}
					
					if = { limit = { PREV = { has_idea = no_military } }
						add_ideas = no_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_army } }
						add_ideas = volunteer_army
					}
					else_if = { limit = { PREV = { has_idea = partial_draft_army } }
						add_ideas = partial_draft_army
					}
					else_if = { limit = { PREV = { has_idea = draft_army } }
						add_ideas = draft_army
					}
					
					if = { limit = { PREV = { has_idea = no_women_in_military } }
						add_ideas = no_women_in_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_women } }
						add_ideas = volunteer_women
					}
					else_if = { limit = { PREV = { has_idea = drafted_women } }
						add_ideas = drafted_women
					}
					
					if = { limit = { PREV = { has_idea = intervention_isolation } }
						add_ideas = intervention_isolation
					}
					else_if = { limit = { PREV = { has_idea = intervention_local_security } }
						add_ideas = intervention_local_security
					}
					else_if = { limit = { PREV = { has_idea = intervention_limited_interventionism } }
						add_ideas = intervention_limited_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_regional_interventionism } }
						add_ideas = intervention_regional_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_global_interventionism } }
						add_ideas = intervention_global_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_neo_imperialism } }
						add_ideas = intervention_neo_imperialism
					}
					
					if = { limit = { PREV = { has_idea = officer_baptism_by_fire } }
						add_ideas = officer_baptism_by_fire
					}
					else_if = { limit = { PREV = { has_idea = officer_basic_training } }
						add_ideas = officer_basic_training
					}
					else_if = { limit = { PREV = { has_idea = officer_advanced_training } }
						add_ideas = officer_advanced_training
					}
					else_if = { limit = { PREV = { has_idea = officer_military_school } }
						add_ideas = officer_military_school
					}
					else_if = { limit = { PREV = { has_idea = officer_military_academy } }
						add_ideas = officer_military_academy
					}
					else_if = { limit = { PREV = { has_idea = officer_international_education } }
						add_ideas = officer_international_education
					}
					
					### Internal factions
					if = { limit = { PREV = { has_idea = small_medium_business_owners } }
						add_ideas = small_medium_business_owners
					}
					if = { limit = { PREV = { has_idea = international_bankers } }
						add_ideas = international_bankers
					}
					if = { limit = { PREV = { has_idea = fossil_fuel_industry } }
						add_ideas = fossil_fuel_industry
					}
					if = { limit = { PREV = { has_idea = industrial_conglomerates } }
						add_ideas = industrial_conglomerates
					}
					if = { limit = { PREV = { has_idea = oligarchs } }
						add_ideas = oligarchs
					}
					if = { limit = { PREV = { has_idea = maritime_industry } }
						add_ideas = maritime_industry
					}
					if = { limit = { PREV = { has_idea = defense_industry } }
						add_ideas = defense_industry
					}
					if = { limit = { PREV = { has_idea = the_military } }
						add_ideas = the_military
					}
					if = { limit = { PREV = { has_idea = intelligence_community } }
						add_ideas = intelligence_community
					}
					if = { limit = { PREV = { has_idea = labour_unions } }
						add_ideas = labour_unions
					}
					if = { limit = { PREV = { has_idea = landowners } }
						add_ideas = landowners
					}
					if = { limit = { PREV = { has_idea = farmers } }
						add_ideas = farmers
					}
					if = {
						limit = { 
							PREV = {
								has_idea = communist_cadres
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 4 }
										is_in_array = { ruling_party = 19 }
									}
								}
							}
						}
						add_ideas = communist_cadres
					}
					if = { limit = { PREV = { has_idea = the_priesthood } }
						add_ideas = the_priesthood
					}
					if = { limit = { PREV = { has_idea = The_Ulema } }
						add_ideas = The_Ulema
					}
					if = { limit = { PREV = { has_idea = The_Clergy } }
						add_ideas = The_Clergy
					}
					if = { limit = { PREV = { has_idea = wahabi_ulema } }
						add_ideas = wahabi_ulema
					}
					if = { limit = { PREV = { has_idea = the_donju } }
						add_ideas = the_donju
					}
					if = { limit = { PREV = { has_idea = the_bazaar } }
						add_ideas = the_bazaar
					}
					if = {
						limit = { 
							PREV = {
								has_idea = saudi_royal_family
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 10 }
										is_in_array = { ruling_party = 23 }
										is_in_array = { ruling_party = 0 }
									}
								}
							}
						}
						add_ideas = saudi_royal_family
					}
					if = {
						limit = { 
							PREV = {
								has_idea = irgc
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = irgc
					}
					if = {
						limit = { 
							PREV = {
								has_idea = iranian_quds_force
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = iranian_quds_force
					}
					if = {
						limit = { 
							PREV = {
								has_idea = vevak
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = vevak
					}
					if = {
						limit = { 
							PREV = {
								has_idea = foreign_jihadis
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 11 }
									}
								}
							}
						}
						add_ideas = foreign_jihadis
					}
					if = { limit = { PREV = { has_idea = isi_pakistan } }
						add_ideas = isi_pakistan
					}
					if = { limit = { PREV = { has_idea = wall_street } }
						add_ideas = wall_street
					}
					if = { limit = { PREV = { has_idea = chaebols } }
						add_ideas = chaebols
					}
					
					add_tax_laws = yes
					calculate_influence_percentage = yes #set alignment drifts from influence
					startup_extra_setup = yes 	#money system
					setup_init_factions = yes 	#flags for int. factions
					init_neighbor_drift_1 = yes #drift from neighbor
					init_neighbor_drift_2 = yes #drift from neighbor
					
					country_event = { id = brotherhood.0 } #Sets muslim_brotherhood relations
					country_event = { id = brotherhood.2 }
				}
				
				#copy leader throughput
					set_variable = { Western_Autocracy_leader = PREV.Western_Autocracy_leader?0 }
					set_variable = { conservatism_leader = PREV.conservatism_leader?0 }
					set_variable = { liberalism_leader = PREV.liberalism_leader?0 }
					set_variable = { socialism_leader = PREV.socialism_leader?0 }
					
					set_variable = { Communist-State_leader = PREV.Communist-State_leader?0 }
					set_variable = { anarchist_communism_leader = PREV.anarchist_communism_leader?0 }
					set_variable = { Conservative_leader = PREV.Conservative_leader?0 }
					set_variable = { Autocracy_leader = PREV.Autocracy_leader?0 }
					set_variable = { Mod_Vilayat_e_Faqih_leader = PREV.Mod_Vilayat_e_Faqih_leader?0 }
					set_variable = { Vilayat_e_Faqih_leader = PREV.Vilayat_e_Faqih_leader?0 }
					
					set_variable = { Kingdom_leader = PREV.Kingdom_leader?0 }
					set_variable = { Caliphate_leader = PREV.Caliphate_leader?0 }
					
					set_variable = { Neutral_Muslim_Brotherhood_leader = PREV.Neutral_Muslim_Brotherhood_leader?0 }
					set_variable = { Neutral_Autocracy_leader = PREV.Neutral_Autocracy_leader?0 }
					set_variable = { Neutral_conservatism_leader = PREV.Neutral_conservatism_leader?0 }
					set_variable = { oligarchism_leader = PREV.oligarchism_leader?0 }
					set_variable = { Neutral_Libertarian_leader = PREV.Neutral_Libertarian_leader?0 }
					set_variable = { Neutral_green_leader = PREV.Neutral_green_leader?0 }
					set_variable = { neutral_Social_leader = PREV.neutral_Social_leader?0 }
					set_variable = { Neutral_Communism_leader = PREV.Neutral_Communism_leader?0 }
					set_variable = { Nat_Populism_leader = PREV.Nat_Populism_leader?0 }
					set_variable = { Nat_Fascism_leader = PREV.Nat_Fascism_leader?0 }
					set_variable = { Nat_Autocracy_leader = PREV.Nat_Autocracy_leader?0 }
					set_variable = { Monarchist_leader = PREV.Monarchist_leader?0 }
				
				#For player:
				
				set_politics = {
					ruling_party = communism
					elections_allowed = no
				}
				add_popularity = {
						ideology = communism
						popularity = 0.5
				}
				hidden_effect = {
					start_politics_input = yes
					add_to_array = { ruling_party = 4 } #communism
					set_variable = { party_pop_array^4 = 0.9 } #generate the rest
					startup_politics = yes
				}
				#Switch to commie leader
				set_country_flag = set_Communist-State
				set_leader = yes
				
				log = "[GetDateText]: [This.GetName]: communist_state_extremist_civil_war setup finished"
			}
		}
	}
	
	neutral_communist_extremist_civil_war = {
		icon = revolt
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		visible = {
			check_variable = { party_pop_array^19 > 0.10 } #significant communism
			has_civil_war = no
			NOT = {
				OR = {
					OR = {
						is_in_array = { gov_coalition_array = 4 } #not is in coalition
						is_in_array = { ruling_party = 4 } #not is ruling party
					}
					#not already communist
					OR = {
						is_in_array = { gov_coalition_array = 19 } #not is in coalition
						is_in_array = { ruling_party = 19 } #not is ruling party
					}
				}
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = neutral_communist_20_tt	
				check_variable = { party_pop_array^19 > 0.2 }
			}
		}
		complete_effect = {
		
			hidden_effect = {
				#Release copy of existing
				set_country_flag = no_leader_change
				if = {
					limit = {
						has_government = nationalist
					}
					start_civil_war = {
						ideology = nationalist
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = communism
					}
					start_civil_war = {
						ideology = communism
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = democratic
					}
					start_civil_war = {
						ideology = democratic
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = neutrality
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = fascism
					}
					start_civil_war = {
						ideology = fascism
						size = 0.5
					}
				}
				clr_country_flag = no_leader_change
				
				#replicating current politics
				random_other_country = {
					limit = {
						original_tag = PREV
						NOT = { TAG = PREV }
					}
					set_temp_variable = { temp_democratic = PREV.party_popularity@democratic }
					multiply_temp_variable = { temp_democratic = 100 }
					set_temp_variable = { temp_total = temp_democratic }
					set_temp_variable = { temp_communism = PREV.party_popularity@communism }
					multiply_temp_variable = { temp_communism = 100 }
					add_to_temp_variable = { temp_total = temp_communism }
					set_temp_variable = { temp_neutrality = PREV.party_popularity@neutrality }
					multiply_temp_variable = { temp_neutrality = 100 }
					add_to_temp_variable = { temp_total = temp_neutrality }
					set_temp_variable = { temp_fascism = PREV.party_popularity@fascism }
					multiply_temp_variable = { temp_fascism = 100 }
					add_to_temp_variable = { temp_total = temp_fascism }
					set_temp_variable = { temp_nationalist = PREV.party_popularity@nationalist }
					multiply_temp_variable = { temp_nationalist = 100 }
					add_to_temp_variable = { temp_total = temp_nationalist }
					subtract_from_temp_variable = { temp_total = 100 }
					multiply_temp_variable = { temp_total = -1 }
					add_to_temp_variable = { temp_nationalist = temp_total }
					
					set_popularities = {
						democratic = temp_democratic
						communism = temp_communism
						neutrality = temp_neutrality
						fascism = temp_fascism
						nationalist = temp_nationalist
					}
					add_popularity = {
						ideology = neutrality
						popularity = -0.2
					}
					start_politics_input = yes
					#copy politics
					for_loop_effect = {
						end = party_pop_array^num
						value = v
						set_variable = { party_pop_array^v = PREV.party_pop_array^v }
					}
					add_to_array = { ruling_party = PREV.ruling_party^0 }
					for_loop_effect = {
						end = gov_coalition_array^num
						value = v
						add_to_array = { gov_coalition_array = PREV.gov_coalition_array^v }
					}
					set_variable = { party_pop_array^19 = 0.01 } #all moved to fight ;) 
					set_variable = { party_pop_elect_array^19 = 0 } #made illegal
					add_up_party_totals = yes
					set_party_positions = yes
					startup_politics = yes
					
					#VARIABLES
					set_variable = { tax_rate = PREV.tax_rate }
					set_variable = { treasury = PREV.treasury }
					
					#don't get values of original yet - REMINDER -> add it on_civil_war_end
					set_variable = { debt = 0 }
					set_variable = { int_investments = 0 }
					
					#influence
					set_variable = { domestic_influence_amount = PREV.domestic_influence_amount }
					#just copy all
					for_loop_effect = {
						end = PREV.influence_array^num
						value = v
						
						add_to_array = { influence_array = PREV.influence_array^v }
						add_to_array = { influence_array_val = PREV.influence_array_val^v }
					}
					recalculate_influence = yes
					
					#GAME VARIABLES
					add_political_power = PREV.political_power
					add_political_power = 400 #bonus
					
					#LAWS
					set_variable = { gdp_capita = PREV.gdp_capita }
					meta_effect = {
						text = {
							add_ideas = gdp_[GDP_LEVEL]
						}
						GDP_LEVEL = "[?gdp_capita|0]"
					}
					set_variable = { bureaucracy = PREV.bureaucracy }
					meta_effect = {
						text = {
							add_ideas = bureau_0[BUREAU_LEVEL]
						}
						BUREAU_LEVEL = "[?bureaucracy|0]"
					}
					set_variable = { crime_fighting = PREV.crime_fighting }
					meta_effect = {
						text = {
							add_ideas = police_0[POLICE_LEVEL]
						}
						POLICE_LEVEL = "[?crime_fighting|0]"
					}
					set_variable = { education_budget = PREV.education_budget }
					meta_effect = {
						text = {
							add_ideas = edu_0[EDU_LEVEL]
						}
						EDU_LEVEL = "[?education_budget|0]"
					}
					set_variable = { health_budget = PREV.health_budget }
					meta_effect = {
						text = {
							add_ideas = health_0[HEALTH_LEVEL]
						}
						HEALTH_LEVEL = "[?health_budget|0]"
					}
					set_variable = { social_budget = PREV.social_budget }
					meta_effect = {
						text = {
							add_ideas = social_0[WELFARE_LEVEL]
						}
						WELFARE_LEVEL = "[?social_budget|0]"
					}
					
					set_variable = { Military_Spending = PREV.Military_Spending }
					subtract_from_variable = { Military_Spending = 1 }
					meta_effect = {
						text = {
							add_ideas = defence_0[DEFENCE_LEVEL]
						}
						DEFENCE_LEVEL = "[?Military_Spending|0]"
					}
					set_variable = { Military_Spending = PREV.Military_Spending }
					
					set_variable = { economic_cycles = PREV.economic_cycles }
					if = { limit = { check_variable = { economic_cycles = 6 } }
						add_ideas = depression
					}
					else_if = { limit = { check_variable = { economic_cycles = 5 } }
						add_ideas = recession
					}
					else_if = { limit = { check_variable = { economic_cycles = 4 } }
						add_ideas = stagnation
					}
					else_if = { limit = { check_variable = { economic_cycles = 3 } }
						add_ideas = stable_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 2 } }
						add_ideas = fast_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 1 } }
						add_ideas = economic_boom
					}
					
					if = { limit = { PREV = { has_idea = paralyzing_corruption } }
						add_ideas = paralyzing_corruption
					}
					else_if = { limit = { PREV = { has_idea = crippling_corruption } }
						add_ideas = crippling_corruption
					}
					else_if = { limit = { PREV = { has_idea = rampant_corruption } }
						add_ideas = rampant_corruption
					}
					else_if = { limit = { PREV = { has_idea = unrestrained_corruption } }
						add_ideas = unrestrained_corruption
					}
					else_if = { limit = { PREV = { has_idea = systematic_corruption } }
						add_ideas = systematic_corruption
					}
					else_if = { limit = { PREV = { has_idea = widespread_corruption } }
						add_ideas = widespread_corruption
					}
					else_if = { limit = { PREV = { has_idea = medium_corruption } }
						add_ideas = medium_corruption
					}
					else_if = { limit = { PREV = { has_idea = modest_corruption } }
						add_ideas = modest_corruption
					}
					else_if = { limit = { PREV = { has_idea = slight_corruption } }
						add_ideas = slight_corruption
					}
					else_if = { limit = { PREV = { has_idea = negligible_corruption } }
						add_ideas = negligible_corruption
					}
					
					if = { limit = { PREV = { has_idea = consumption_economy } }
						add_ideas = consumption_economy
					}
					else_if = { limit = { PREV = { has_idea = mixed_economy } }
						add_ideas = mixed_economy
					}
					else_if = { limit = { PREV = { has_idea = export_economy } }
						add_ideas = export_economy
					}
					
					if = { limit = { PREV = { has_idea = no_military } }
						add_ideas = no_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_army } }
						add_ideas = volunteer_army
					}
					else_if = { limit = { PREV = { has_idea = partial_draft_army } }
						add_ideas = partial_draft_army
					}
					else_if = { limit = { PREV = { has_idea = draft_army } }
						add_ideas = draft_army
					}
					
					if = { limit = { PREV = { has_idea = no_women_in_military } }
						add_ideas = no_women_in_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_women } }
						add_ideas = volunteer_women
					}
					else_if = { limit = { PREV = { has_idea = drafted_women } }
						add_ideas = drafted_women
					}
					
					if = { limit = { PREV = { has_idea = intervention_isolation } }
						add_ideas = intervention_isolation
					}
					else_if = { limit = { PREV = { has_idea = intervention_local_security } }
						add_ideas = intervention_local_security
					}
					else_if = { limit = { PREV = { has_idea = intervention_limited_interventionism } }
						add_ideas = intervention_limited_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_regional_interventionism } }
						add_ideas = intervention_regional_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_global_interventionism } }
						add_ideas = intervention_global_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_neo_imperialism } }
						add_ideas = intervention_neo_imperialism
					}
					
					if = { limit = { PREV = { has_idea = officer_baptism_by_fire } }
						add_ideas = officer_baptism_by_fire
					}
					else_if = { limit = { PREV = { has_idea = officer_basic_training } }
						add_ideas = officer_basic_training
					}
					else_if = { limit = { PREV = { has_idea = officer_advanced_training } }
						add_ideas = officer_advanced_training
					}
					else_if = { limit = { PREV = { has_idea = officer_military_school } }
						add_ideas = officer_military_school
					}
					else_if = { limit = { PREV = { has_idea = officer_military_academy } }
						add_ideas = officer_military_academy
					}
					else_if = { limit = { PREV = { has_idea = officer_international_education } }
						add_ideas = officer_international_education
					}
					
					### Internal factions
					if = { limit = { PREV = { has_idea = small_medium_business_owners } }
						add_ideas = small_medium_business_owners
					}
					if = { limit = { PREV = { has_idea = international_bankers } }
						add_ideas = international_bankers
					}
					if = { limit = { PREV = { has_idea = fossil_fuel_industry } }
						add_ideas = fossil_fuel_industry
					}
					if = { limit = { PREV = { has_idea = industrial_conglomerates } }
						add_ideas = industrial_conglomerates
					}
					if = { limit = { PREV = { has_idea = oligarchs } }
						add_ideas = oligarchs
					}
					if = { limit = { PREV = { has_idea = maritime_industry } }
						add_ideas = maritime_industry
					}
					if = { limit = { PREV = { has_idea = defense_industry } }
						add_ideas = defense_industry
					}
					if = { limit = { PREV = { has_idea = the_military } }
						add_ideas = the_military
					}
					if = { limit = { PREV = { has_idea = intelligence_community } }
						add_ideas = intelligence_community
					}
					if = { limit = { PREV = { has_idea = labour_unions } }
						add_ideas = labour_unions
					}
					if = { limit = { PREV = { has_idea = landowners } }
						add_ideas = landowners
					}
					if = { limit = { PREV = { has_idea = farmers } }
						add_ideas = farmers
					}
					if = {
						limit = { 
							PREV = {
								has_idea = communist_cadres
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 4 }
										is_in_array = { ruling_party = 19 }
									}
								}
							}
						}
						add_ideas = communist_cadres
					}
					if = { limit = { PREV = { has_idea = the_priesthood } }
						add_ideas = the_priesthood
					}
					if = { limit = { PREV = { has_idea = The_Ulema } }
						add_ideas = The_Ulema
					}
					if = { limit = { PREV = { has_idea = The_Clergy } }
						add_ideas = The_Clergy
					}
					if = { limit = { PREV = { has_idea = wahabi_ulema } }
						add_ideas = wahabi_ulema
					}
					if = { limit = { PREV = { has_idea = the_donju } }
						add_ideas = the_donju
					}
					if = { limit = { PREV = { has_idea = the_bazaar } }
						add_ideas = the_bazaar
					}
					if = {
						limit = { 
							PREV = {
								has_idea = saudi_royal_family
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 10 }
										is_in_array = { ruling_party = 23 }
										is_in_array = { ruling_party = 0 }
									}
								}
							}
						}
						add_ideas = saudi_royal_family
					}
					if = {
						limit = { 
							PREV = {
								has_idea = irgc
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = irgc
					}
					if = {
						limit = { 
							PREV = {
								has_idea = iranian_quds_force
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = iranian_quds_force
					}
					if = {
						limit = { 
							PREV = {
								has_idea = vevak
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = vevak
					}
					if = {
						limit = { 
							PREV = {
								has_idea = foreign_jihadis
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 11 }
									}
								}
							}
						}
						add_ideas = foreign_jihadis
					}
					if = { limit = { PREV = { has_idea = isi_pakistan } }
						add_ideas = isi_pakistan
					}
					if = { limit = { PREV = { has_idea = wall_street } }
						add_ideas = wall_street
					}
					if = { limit = { PREV = { has_idea = chaebols } }
						add_ideas = chaebols
					}
					
					#copy leader throughput
					set_variable = { Western_Autocracy_leader = PREV.Western_Autocracy_leader?0 }
					set_variable = { conservatism_leader = PREV.conservatism_leader?0 }
					set_variable = { liberalism_leader = PREV.liberalism_leader?0 }
					set_variable = { socialism_leader = PREV.socialism_leader?0 }
					
					set_variable = { Communist-State_leader = PREV.Communist-State_leader?0 }
					set_variable = { anarchist_communism_leader = PREV.anarchist_communism_leader?0 }
					set_variable = { Conservative_leader = PREV.Conservative_leader?0 }
					set_variable = { Autocracy_leader = PREV.Autocracy_leader?0 }
					set_variable = { Mod_Vilayat_e_Faqih_leader = PREV.Mod_Vilayat_e_Faqih_leader?0 }
					set_variable = { Vilayat_e_Faqih_leader = PREV.Vilayat_e_Faqih_leader?0 }
					
					set_variable = { Kingdom_leader = PREV.Kingdom_leader?0 }
					set_variable = { Caliphate_leader = PREV.Caliphate_leader?0 }
					
					set_variable = { Neutral_Muslim_Brotherhood_leader = PREV.Neutral_Muslim_Brotherhood_leader?0 }
					set_variable = { Neutral_Autocracy_leader = PREV.Neutral_Autocracy_leader?0 }
					set_variable = { Neutral_conservatism_leader = PREV.Neutral_conservatism_leader?0 }
					set_variable = { oligarchism_leader = PREV.oligarchism_leader?0 }
					set_variable = { Neutral_Libertarian_leader = PREV.Neutral_Libertarian_leader?0 }
					set_variable = { Neutral_green_leader = PREV.Neutral_green_leader?0 }
					set_variable = { neutral_Social_leader = PREV.neutral_Social_leader?0 }
					set_variable = { Neutral_Communism_leader = PREV.Neutral_Communism_leader?0 }
					set_variable = { Nat_Populism_leader = PREV.Nat_Populism_leader?0 }
					set_variable = { Nat_Fascism_leader = PREV.Nat_Fascism_leader?0 }
					set_variable = { Nat_Autocracy_leader = PREV.Nat_Autocracy_leader?0 }
					set_variable = { Monarchist_leader = PREV.Monarchist_leader?0 }
					
					add_tax_laws = yes
					calculate_influence_percentage = yes #set alignment drifts from influence
					startup_extra_setup = yes 	#money system
					setup_init_factions = yes 	#flags for int. factions
					init_neighbor_drift_1 = yes #drift from neighbor
					init_neighbor_drift_2 = yes #drift from neighbor
				}
				
				#For player:
				
				set_politics = {
					ruling_party = neutrality
					elections_allowed = no
				}
				add_popularity = {
						ideology = neutrality
						popularity = 0.5
				}
				hidden_effect = {
					start_politics_input = yes
					add_to_array = { ruling_party = 19 } #communism
					set_variable = { party_pop_array^19 = 0.9 } #generate the rest
					startup_politics = yes
				}
				
				#Switch to fascist leader
					set_country_flag = set_Neutral_Communism
					set_leader = yes
				
				log = "[GetDateText]: [This.GetName]: communist_state_extremist_civil_war setup finished"
			}
		}
	}
	#shiite revolutionary
	vilayat_e_faqih_extremist_civil_war = {
		icon = revolt
		
		cost = 150
		days_remove = 0
		days_re_enable = 0
		
		visible = {
			check_variable = { party_pop_array^9 > 0.10 } #significant shiite theocracy
			has_civil_war = no
			NOT = {
				OR = {
					OR = {
						is_in_array = { gov_coalition_array = 9 } #not is in coalition
						is_in_array = { ruling_party = 9 } #not is ruling party
					}
					#also see if their moderate friends are there
					OR = {
						is_in_array = { gov_coalition_array = 8 } #not is in coalition
						is_in_array = { ruling_party = 8 } #not is ruling party
					}
				}
			}
		}
		available = {
			NOT = {
				has_government = communism
			}
			custom_trigger_tooltip = {
				tooltip = vilayat_e_faqih_20_tt	
				check_variable = { party_pop_array^9 > 0.2 }
			}
		}
		complete_effect = {
		
			hidden_effect = {
				#Release copy of existing
				set_country_flag = no_leader_change
				if = {
					limit = {
						has_government = nationalist
					}
					start_civil_war = {
						ideology = nationalist
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = communism
					}
					start_civil_war = {
						ideology = communism
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = democratic
					}
					start_civil_war = {
						ideology = democratic
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = neutrality
					}
					start_civil_war = {
						ideology = neutrality
						size = 0.5
					}
				}
				else_if = {
					limit = {
						has_government = fascism
					}
					start_civil_war = {
						ideology = fascism
						size = 0.5
					}
				}
				clr_country_flag = no_leader_change
				
				#replicating current politics
				random_other_country = {
					limit = {
						original_tag = PREV
						NOT = { TAG = PREV }
					}
					set_temp_variable = { temp_democratic = PREV.party_popularity@democratic }
					multiply_temp_variable = { temp_democratic = 100 }
					set_temp_variable = { temp_total = temp_democratic }
					set_temp_variable = { temp_communism = PREV.party_popularity@communism }
					multiply_temp_variable = { temp_communism = 100 }
					add_to_temp_variable = { temp_total = temp_communism }
					set_temp_variable = { temp_neutrality = PREV.party_popularity@neutrality }
					multiply_temp_variable = { temp_neutrality = 100 }
					add_to_temp_variable = { temp_total = temp_neutrality }
					set_temp_variable = { temp_fascism = PREV.party_popularity@fascism }
					multiply_temp_variable = { temp_fascism = 100 }
					add_to_temp_variable = { temp_total = temp_fascism }
					set_temp_variable = { temp_nationalist = PREV.party_popularity@nationalist }
					multiply_temp_variable = { temp_nationalist = 100 }
					add_to_temp_variable = { temp_total = temp_nationalist }
					subtract_from_temp_variable = { temp_total = 100 }
					multiply_temp_variable = { temp_total = -1 }
					add_to_temp_variable = { temp_nationalist = temp_total }
					
					set_popularities = {
						democratic = temp_democratic
						communism = temp_communism
						neutrality = temp_neutrality
						fascism = temp_fascism
						nationalist = temp_nationalist
					}
					add_popularity = {
						ideology = communism
						popularity = -0.2
					}
					start_politics_input = yes
					#copy politics
					for_loop_effect = {
						end = party_pop_array^num
						value = v
						set_variable = { party_pop_array^v = PREV.party_pop_array^v }
					}
					add_to_array = { ruling_party = PREV.ruling_party^0 }
					for_loop_effect = {
						end = gov_coalition_array^num
						value = v
						add_to_array = { gov_coalition_array = PREV.gov_coalition_array^v }
					}
					set_variable = { party_pop_array^9 = 0.01 } #all moved to fight ;) 
					set_variable = { party_pop_elect_array^9 = 0 } #made illegal
					add_up_party_totals = yes
					set_party_positions = yes
					startup_politics = yes
					
					#VARIABLES
					set_variable = { tax_rate = PREV.tax_rate }
					set_variable = { treasury = PREV.treasury }
					
					#don't get values of original yet - REMINDER -> add it on_civil_war_end
					set_variable = { debt = 0 }
					set_variable = { int_investments = 0 }
					
					#influence
					set_variable = { domestic_influence_amount = PREV.domestic_influence_amount }
					#just copy all
					for_loop_effect = {
						end = PREV.influence_array^num
						value = v
						
						add_to_array = { influence_array = PREV.influence_array^v }
						add_to_array = { influence_array_val = PREV.influence_array_val^v }
					}
					recalculate_influence = yes
					
					#GAME VARIABLES
					add_political_power = PREV.political_power
					add_political_power = 400 #bonus
					
					#LAWS
					set_variable = { gdp_capita = PREV.gdp_capita }
					meta_effect = {
						text = {
							add_ideas = gdp_[GDP_LEVEL]
						}
						GDP_LEVEL = "[?gdp_capita|0]"
					}
					set_variable = { bureaucracy = PREV.bureaucracy }
					meta_effect = {
						text = {
							add_ideas = bureau_0[BUREAU_LEVEL]
						}
						BUREAU_LEVEL = "[?bureaucracy|0]"
					}
					set_variable = { crime_fighting = PREV.crime_fighting }
					meta_effect = {
						text = {
							add_ideas = police_0[POLICE_LEVEL]
						}
						POLICE_LEVEL = "[?crime_fighting|0]"
					}
					set_variable = { education_budget = PREV.education_budget }
					meta_effect = {
						text = {
							add_ideas = edu_0[EDU_LEVEL]
						}
						EDU_LEVEL = "[?education_budget|0]"
					}
					set_variable = { health_budget = PREV.health_budget }
					meta_effect = {
						text = {
							add_ideas = health_0[HEALTH_LEVEL]
						}
						HEALTH_LEVEL = "[?health_budget|0]"
					}
					set_variable = { social_budget = PREV.social_budget }
					meta_effect = {
						text = {
							add_ideas = social_0[WELFARE_LEVEL]
						}
						WELFARE_LEVEL = "[?social_budget|0]"
					}
					
					set_variable = { Military_Spending = PREV.Military_Spending }
					subtract_from_variable = { Military_Spending = 1 }
					meta_effect = {
						text = {
							add_ideas = defence_0[DEFENCE_LEVEL]
						}
						DEFENCE_LEVEL = "[?Military_Spending|0]"
					}
					set_variable = { Military_Spending = PREV.Military_Spending }
					
					set_variable = { economic_cycles = PREV.economic_cycles }
					if = { limit = { check_variable = { economic_cycles = 6 } }
						add_ideas = depression
					}
					else_if = { limit = { check_variable = { economic_cycles = 5 } }
						add_ideas = recession
					}
					else_if = { limit = { check_variable = { economic_cycles = 4 } }
						add_ideas = stagnation
					}
					else_if = { limit = { check_variable = { economic_cycles = 3 } }
						add_ideas = stable_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 2 } }
						add_ideas = fast_growth
					}
					else_if = { limit = { check_variable = { economic_cycles = 1 } }
						add_ideas = economic_boom
					}
					
					if = { limit = { PREV = { has_idea = paralyzing_corruption } }
						add_ideas = paralyzing_corruption
					}
					else_if = { limit = { PREV = { has_idea = crippling_corruption } }
						add_ideas = crippling_corruption
					}
					else_if = { limit = { PREV = { has_idea = rampant_corruption } }
						add_ideas = rampant_corruption
					}
					else_if = { limit = { PREV = { has_idea = unrestrained_corruption } }
						add_ideas = unrestrained_corruption
					}
					else_if = { limit = { PREV = { has_idea = systematic_corruption } }
						add_ideas = systematic_corruption
					}
					else_if = { limit = { PREV = { has_idea = widespread_corruption } }
						add_ideas = widespread_corruption
					}
					else_if = { limit = { PREV = { has_idea = medium_corruption } }
						add_ideas = medium_corruption
					}
					else_if = { limit = { PREV = { has_idea = modest_corruption } }
						add_ideas = modest_corruption
					}
					else_if = { limit = { PREV = { has_idea = slight_corruption } }
						add_ideas = slight_corruption
					}
					else_if = { limit = { PREV = { has_idea = negligible_corruption } }
						add_ideas = negligible_corruption
					}
					
					if = { limit = { PREV = { has_idea = consumption_economy } }
						add_ideas = consumption_economy
					}
					else_if = { limit = { PREV = { has_idea = mixed_economy } }
						add_ideas = mixed_economy
					}
					else_if = { limit = { PREV = { has_idea = export_economy } }
						add_ideas = export_economy
					}
					
					if = { limit = { PREV = { has_idea = no_military } }
						add_ideas = no_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_army } }
						add_ideas = volunteer_army
					}
					else_if = { limit = { PREV = { has_idea = partial_draft_army } }
						add_ideas = partial_draft_army
					}
					else_if = { limit = { PREV = { has_idea = draft_army } }
						add_ideas = draft_army
					}
					
					if = { limit = { PREV = { has_idea = no_women_in_military } }
						add_ideas = no_women_in_military
					}
					else_if = { limit = { PREV = { has_idea = volunteer_women } }
						add_ideas = volunteer_women
					}
					else_if = { limit = { PREV = { has_idea = drafted_women } }
						add_ideas = drafted_women
					}
					
					if = { limit = { PREV = { has_idea = intervention_isolation } }
						add_ideas = intervention_isolation
					}
					else_if = { limit = { PREV = { has_idea = intervention_local_security } }
						add_ideas = intervention_local_security
					}
					else_if = { limit = { PREV = { has_idea = intervention_limited_interventionism } }
						add_ideas = intervention_limited_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_regional_interventionism } }
						add_ideas = intervention_regional_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_global_interventionism } }
						add_ideas = intervention_global_interventionism
					}
					else_if = { limit = { PREV = { has_idea = intervention_neo_imperialism } }
						add_ideas = intervention_neo_imperialism
					}
					
					if = { limit = { PREV = { has_idea = officer_baptism_by_fire } }
						add_ideas = officer_baptism_by_fire
					}
					else_if = { limit = { PREV = { has_idea = officer_basic_training } }
						add_ideas = officer_basic_training
					}
					else_if = { limit = { PREV = { has_idea = officer_advanced_training } }
						add_ideas = officer_advanced_training
					}
					else_if = { limit = { PREV = { has_idea = officer_military_school } }
						add_ideas = officer_military_school
					}
					else_if = { limit = { PREV = { has_idea = officer_military_academy } }
						add_ideas = officer_military_academy
					}
					else_if = { limit = { PREV = { has_idea = officer_international_education } }
						add_ideas = officer_international_education
					}
					
					### Internal factions
					if = { limit = { PREV = { has_idea = small_medium_business_owners } }
						add_ideas = small_medium_business_owners
					}
					if = { limit = { PREV = { has_idea = international_bankers } }
						add_ideas = international_bankers
					}
					if = { limit = { PREV = { has_idea = fossil_fuel_industry } }
						add_ideas = fossil_fuel_industry
					}
					if = { limit = { PREV = { has_idea = industrial_conglomerates } }
						add_ideas = industrial_conglomerates
					}
					if = { limit = { PREV = { has_idea = oligarchs } }
						add_ideas = oligarchs
					}
					if = { limit = { PREV = { has_idea = maritime_industry } }
						add_ideas = maritime_industry
					}
					if = { limit = { PREV = { has_idea = defense_industry } }
						add_ideas = defense_industry
					}
					if = { limit = { PREV = { has_idea = the_military } }
						add_ideas = the_military
					}
					if = { limit = { PREV = { has_idea = intelligence_community } }
						add_ideas = intelligence_community
					}
					if = { limit = { PREV = { has_idea = labour_unions } }
						add_ideas = labour_unions
					}
					if = { limit = { PREV = { has_idea = landowners } }
						add_ideas = landowners
					}
					if = { limit = { PREV = { has_idea = farmers } }
						add_ideas = farmers
					}
					if = {
						limit = { 
							PREV = {
								has_idea = communist_cadres
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 4 }
										is_in_array = { ruling_party = 19 }
									}
								}
							}
						}
						add_ideas = communist_cadres
					}
					if = { limit = { PREV = { has_idea = the_priesthood } }
						add_ideas = the_priesthood
					}
					if = { limit = { PREV = { has_idea = The_Ulema } }
						add_ideas = The_Ulema
					}
					if = { limit = { PREV = { has_idea = The_Clergy } }
						add_ideas = The_Clergy
					}
					if = { limit = { PREV = { has_idea = wahabi_ulema } }
						add_ideas = wahabi_ulema
					}
					if = { limit = { PREV = { has_idea = the_donju } }
						add_ideas = the_donju
					}
					if = { limit = { PREV = { has_idea = the_bazaar } }
						add_ideas = the_bazaar
					}
					if = {
						limit = { 
							PREV = {
								has_idea = saudi_royal_family
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 10 }
										is_in_array = { ruling_party = 23 }
										is_in_array = { ruling_party = 0 }
									}
								}
							}
						}
						add_ideas = saudi_royal_family
					}
					if = {
						limit = { 
							PREV = {
								has_idea = irgc
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = irgc
					}
					if = {
						limit = { 
							PREV = {
								has_idea = iranian_quds_force
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = iranian_quds_force
					}
					if = {
						limit = { 
							PREV = {
								has_idea = vevak
								ROOT = {
									NOT = {
										OR = {
											has_government = democratic
											has_government = fascism
										}
									}
								}
							}
						}
						add_ideas = vevak
					}
					if = {
						limit = { 
							PREV = {
								has_idea = foreign_jihadis
								ROOT = {
									OR = {
										is_in_array = { ruling_party = 11 }
									}
								}
							}
						}
						add_ideas = foreign_jihadis
					}
					if = { limit = { PREV = { has_idea = isi_pakistan } }
						add_ideas = isi_pakistan
					}
					if = { limit = { PREV = { has_idea = wall_street } }
						add_ideas = wall_street
					}
					if = { limit = { PREV = { has_idea = chaebols } }
						add_ideas = chaebols
					}
					
					#copy leader throughput
					set_variable = { Western_Autocracy_leader = PREV.Western_Autocracy_leader?0 }
					set_variable = { conservatism_leader = PREV.conservatism_leader?0 }
					set_variable = { liberalism_leader = PREV.liberalism_leader?0 }
					set_variable = { socialism_leader = PREV.socialism_leader?0 }
					
					set_variable = { Communist-State_leader = PREV.Communist-State_leader?0 }
					set_variable = { anarchist_communism_leader = PREV.anarchist_communism_leader?0 }
					set_variable = { Conservative_leader = PREV.Conservative_leader?0 }
					set_variable = { Autocracy_leader = PREV.Autocracy_leader?0 }
					set_variable = { Mod_Vilayat_e_Faqih_leader = PREV.Mod_Vilayat_e_Faqih_leader?0 }
					set_variable = { Vilayat_e_Faqih_leader = PREV.Vilayat_e_Faqih_leader?0 }
					
					set_variable = { Kingdom_leader = PREV.Kingdom_leader?0 }
					set_variable = { Caliphate_leader = PREV.Caliphate_leader?0 }
					
					set_variable = { Neutral_Muslim_Brotherhood_leader = PREV.Neutral_Muslim_Brotherhood_leader?0 }
					set_variable = { Neutral_Autocracy_leader = PREV.Neutral_Autocracy_leader?0 }
					set_variable = { Neutral_conservatism_leader = PREV.Neutral_conservatism_leader?0 }
					set_variable = { oligarchism_leader = PREV.oligarchism_leader?0 }
					set_variable = { Neutral_Libertarian_leader = PREV.Neutral_Libertarian_leader?0 }
					set_variable = { Neutral_green_leader = PREV.Neutral_green_leader?0 }
					set_variable = { neutral_Social_leader = PREV.neutral_Social_leader?0 }
					set_variable = { Neutral_Communism_leader = PREV.Neutral_Communism_leader?0 }
					set_variable = { Nat_Populism_leader = PREV.Nat_Populism_leader?0 }
					set_variable = { Nat_Fascism_leader = PREV.Nat_Fascism_leader?0 }
					set_variable = { Nat_Autocracy_leader = PREV.Nat_Autocracy_leader?0 }
					set_variable = { Monarchist_leader = PREV.Monarchist_leader?0 }
					
					add_tax_laws = yes
					calculate_influence_percentage = yes #set alignment drifts from influence
					startup_extra_setup = yes 	#money system
					setup_init_factions = yes 	#flags for int. factions
					init_neighbor_drift_1 = yes #drift from neighbor
					init_neighbor_drift_2 = yes #drift from neighbor
				}
				
				#For player:
				
				set_politics = {
					ruling_party = communism
					elections_allowed = no
				}
				add_popularity = {
						ideology = communism
						popularity = 0.5
				}
				hidden_effect = {
					start_politics_input = yes
					add_to_array = { ruling_party = 9 } #shiite theocracy
					set_variable = { party_pop_array^9 = 0.9 } #generate the rest
					startup_politics = yes
				}
				
				#Switch to shiite leader
					set_country_flag = set_Vilayat_e_Faqih
					set_leader = yes
				
				#Give support from resistance axis
				hidden_effect = {
					PER = {
						if = { 
							limit = {
								OR = {
									is_in_array = { ruling_party = 8 }
									is_in_array = { ruling_party = 9 } 
									is_in_array = { ruling_party = 22 } #IRCG
								}
							}
							add_ai_strategy = {
								type = befriend 
								id = ROOT
								value = 200
							}
							
							add_ai_strategy = {
								type = send_volunteers_desire
								id = ROOT
								value = 200
							}
							
							add_ai_strategy = {
								type = support
								id = ROOT
								value = 200
							}
						}
					}
					HEZ = {
						if = { 
							limit = {
								OR = {
									is_in_array = { ruling_party = 8 }
									is_in_array = { ruling_party = 9 }
								}
							}
							add_ai_strategy = {
								type = befriend 
								id = ROOT
								value = 200
							}
							
							add_ai_strategy = {
								type = send_volunteers_desire
								id = ROOT
								value = 200
							}
							
							add_ai_strategy = {
								type = support
								id = ROOT
								value = 200
							}
						}
					}
				}
				log = "[GetDateText]: [This.GetName]: communist_state_extremist_civil_war setup finished"
			}
		}
	}
	### #### TODO: ####
	### - generic boost outlook temp drift
	
	### Nationalist Claims ###
	
	
	### France ###
	
	FRA_nationalist_claims_BEL = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = FRA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 52
			BEL = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = BEL
				type = take_claimed_state
				generator = {
					52
				}
			}
			hidden_effect = { BEL = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	FRA_nationalist_claims_SWI = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = FRA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 72
			SWI = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SWI
				type = take_claimed_state
				generator = {
					72
				}
			}
			hidden_effect = { SWI = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Norway ###
	
	NOR_nationalist_claims_DEN = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = NOR }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 1 #greenland
			add_state_core = 2 #faroe islands
			DEN = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = DEN
				type = take_claimed_state
				generator = {
					1 2
				}
			}
			hidden_effect = { DEN = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	NOR_nationalist_claims_ICE = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = NOR }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 7 #iceland
			ICE = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = ICE
				type = take_claimed_state
				generator = {
					7
				}
			}
			hidden_effect = { ICE = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	NOR_nationalist_claims_ENG = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = NOR }
		
		visible = { 
			has_government = nationalist
			8 = { is_owned_by = ENG }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 8 #shetland
			ENG = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = ENG
				type = take_claimed_state
				generator = {
					8
				}
			}
			hidden_effect = { ENG = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	NOR_nationalist_claims_SCO = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = NOR }
		
		visible = { 
			has_government = nationalist
			8 = { is_owned_by = SCO }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 8 #shetland
			SCO = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SCO
				type = take_claimed_state
				generator = {
					8
				}
			}
			hidden_effect = { SCO = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	
	### Sweden ###
	
	SWE_nationalist_claims_FIN = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = SWE }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 104 #�land
			FIN = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = FIN
				type = take_claimed_state
				generator = {
					104
				}
			}
			hidden_effect = { FIN = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Denmark ###
	
	DEN_nationalist_claims_SWE = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = DEN }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 550 #sk�ne
			SWE = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SWE
				type = take_claimed_state
				generator = {
					550
				}
			}
			hidden_effect = { SWE = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	DEN_nationalist_claims_GER = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = DEN }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 37 #sclesvig-holstein
			GER = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = GER
				type = take_claimed_state
				generator = {
					37
				}
			}
			hidden_effect = { GER = { add_political_power = 2000 } } #extra to compensate higher cost
		}
	}
	
	### Netherlands ###
	
	HOL_nationalist_claims_BEL = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = HOL }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 50
			add_state_core = 51
			BEL = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = BEL
				type = take_claimed_state
				generator = {
					50 51
				}
			}
			hidden_effect = { BEL = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Italy ###
	
	ITA_nationalist_claims_SWI = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ITA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 73
			SWI = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SWI
				type = take_claimed_state
				generator = {
					73
				}
			}
			hidden_effect = { SWI = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	ITA_nationalist_claims_SLV = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ITA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 124
			SLV = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SLV
				type = take_claimed_state
				generator = {
					124
				}
			}
			hidden_effect = { SLV = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	ITA_nationalist_claims_CRO = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ITA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 127
			CRO = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = CRO
				type = take_claimed_state
				generator = {
					127
				}
			}
			hidden_effect = { CRO = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	ITA_nationalist_claims_FRA = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ITA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 65 #Corsica
			FRA = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = FRA
				type = take_claimed_state
				generator = {
					65
				}
			}
			hidden_effect = { FRA = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	ITA_nationalist_claims_MLT = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ITA }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 85 #Malta
			MLT = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = MLT
				type = take_claimed_state
				generator = {
					85
				}
			}
			hidden_effect = { MLT = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Hungary ###
	
	HUN_nationalist_claims_UKR = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = HUN }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 701
			UKR = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = UKR
				type = take_claimed_state
				generator = {
					701
				}
			}
			hidden_effect = { UKR = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	HUN_nationalist_claims_ROM = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = HUN }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 909
			ROM = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = ROM
				type = take_claimed_state
				generator = {
					909
				}
			}
			hidden_effect = { ROM = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Austria ##
	
	AUS_nationalist_claims_ITA = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = AUS }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 285
			ITA = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = ITA
				type = take_claimed_state
				generator = {
					285
				}
			}
			hidden_effect = { ITA = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Poland ##
	
	POL_nationalist_claims_UKR = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = POL }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 700
			UKR = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = UKR
				type = take_claimed_state
				generator = {
					700
				}
			}
			hidden_effect = { UKR = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	POL_nationalist_claims_BLR = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = POL }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 702
			BLR = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = BLR
				type = take_claimed_state
				generator = {
					702
				}
			}
			hidden_effect = { BLR = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	POL_nationalist_claims_LIT = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = POL }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 110
			LIT = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = LIT
				type = take_claimed_state
				generator = {
					110
				}
			}
			hidden_effect = { LIT = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Albania ##
	
	ALB_nationalist_claims_KOS = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ALB }
		
		visible = { 
			has_government = nationalist
			133 = { is_owned_by = KOS }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 133
			KOS = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = KOS
				type = take_claimed_state
				generator = {
					133
				}
			}
			hidden_effect = { KOS = { add_political_power = 400 } } #pp to change mil law
		}
	}
	ALB_nationalist_claims_SER = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ALB }
		
		visible = { 
			has_government = nationalist
			133 = { is_owned_by = SER }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 133
			SER = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SER
				type = take_claimed_state
				generator = {
					133
				}
			}
			hidden_effect = { SER = { add_political_power = 400 } } #pp to change mil law
		}
	}
	ALB_nationalist_claims_FYR = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = ALB }
		
		visible = { 
			has_government = nationalist
			135 = { is_owned_by = FYR }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_state_core = 135
			FYR = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = FYR
				type = take_claimed_state
				generator = {
					135
				}
			}
			hidden_effect = { FYR = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	### Germany ###
	
	GER_nationalist_claims_enable = {
		icon = decision
		
		cost = 150
		days_remove = 0
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
				}
			}
		}
		
		complete_effect = {
			add_named_threat = { threat = 20 name = GER_expansionist }
			remove_ideas = { german_legacy }
			USA = { add_opinion_modifier = { target = GER modifier = expansionist_agenda } }
			ENG = { add_opinion_modifier = { target = GER modifier = expansionist_agenda } }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
	}
	
	GER_nationalist_claims_AUS = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 286
			add_state_core = 75
			add_state_core = 76
			AUS = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = AUS
				type = take_claimed_state
				generator = {
					286 76 75
				}
			}
			hidden_effect = { AUS = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	GER_nationalist_claims_SWI = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 74
			SWI = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SWI
				type = take_claimed_state
				generator = {
					74
				}
			}
			hidden_effect = { SWI = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	GER_nationalist_claims_FRA = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 57
			FRA = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = FRA
				type = take_claimed_state
				generator = {
					57
				}
			}
			hidden_effect = { FRA = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	GER_nationalist_claims_LUX = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 53
			LUX = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = LUX
				type = take_claimed_state
				generator = {
					53
				}
			}
			hidden_effect = { LUX = { add_political_power = 400 } } #pp to change mil law
		}
	}
	GER_nationalist_claims_SOV = {
		icon = decision
		
		cost = 200
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 642
			SOV = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SOV
				type = take_claimed_state
				generator = {
					642
				}
			}
			hidden_effect = { SOV = { add_political_power = 400 } } #pp to change mil law
		}
	}
	GER_nationalist_claims_POL = {
		icon = decision
		
		cost = 300
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { has_government = nationalist }
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 626
			add_state_core = 625
			add_state_core = 474
			add_state_core = 113
			POL = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = POL
				type = take_claimed_state
				generator = {
					626 625 474 113
				}
			}
			hidden_effect = { POL = { add_political_power = 400 } } #pp to change mil law
		}
	}
	GER_nationalist_claims_ITA = {
		icon = decision
		
		cost = 150
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { 
			has_government = nationalist
			286 = { is_fully_controlled_by = ROOT }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 285
			ITA = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = ITA
				type = take_claimed_state
				generator = {
					285
				}
			}
			hidden_effect = { ITA = { add_political_power = 400 } } #pp to change mil law
		}
	}
	GER_nationalist_claims_SLV = {
		icon = decision
		
		cost = 150
		days_remove = 120
		fire_only_once = yes
		
		allowed = { original_tag = GER }
		
		visible = { 
			has_government = nationalist
			75 = { is_fully_controlled_by = ROOT }
		}
		
		available = {
			NOT = {
				OR = {
					has_idea = EU_member
					has_idea = NATO_member
					has_idea = german_legacy
				}
			}
		}
		
		complete_effect = {
			add_state_core = 125
			SLV = { ai_build_units = yes }
			every_neighbor_country = {
				add_opinion_modifier = { target = PREV modifier = expansionist_agenda }
			}
		}
		remove_effect = {
			create_wargoal = {
				target = SLV
				type = take_claimed_state
				generator = {
					125
				}
			}
			hidden_effect = { SLV = { add_political_power = 400 } } #pp to change mil law
		}
	}
	
	#### Promoting Outlooks ###
	
	promote_outlook_decision_support_pro_western_parties = {
	
		icon = eng_propaganda_campaigns
		
		cost = 150

		days_remove = 90
		days_re_enable = 30
		
		modifier = { democratic_drift = 0.2 }

		complete_effect = {
			
			custom_effect_tooltip = treasury_loss_2_bil_TT
			
			if = { limit = { check_variable = { num_of_factories < 4 } }
				subtract_from_variable = { treasury = 0.05 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 3 }
					check_variable = { num_of_factories < 8 }
				}
				subtract_from_variable = { treasury = 0.1 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 7 }
					check_variable = { num_of_factories < 16 }
				}
				subtract_from_variable = { treasury = 0.2 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 15 }
					check_variable = { num_of_factories < 26 }
				}
				subtract_from_variable = { treasury = 0.35 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 25 }
					check_variable = { num_of_factories < 39 }
				}
				subtract_from_variable = { treasury = 0.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 38 }
					check_variable = { num_of_factories < 54 }
				}
				subtract_from_variable = { treasury = 0.75 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 53 }
					check_variable = { num_of_factories < 82 }
				}
				subtract_from_variable = { treasury = 1.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 81 }
					check_variable = { num_of_factories < 120 }
				}
				subtract_from_variable = { treasury = 1.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 119 }
					check_variable = { num_of_factories < 164 }
				}
				subtract_from_variable = { treasury = 2.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 163 }
					check_variable = { num_of_factories < 250 }
				}
				subtract_from_variable = { treasury = 4.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 249 }
					check_variable = { num_of_factories < 370 }
				}
				subtract_from_variable = { treasury = 5.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 369 }
					check_variable = { num_of_factories < 500 }
				}
				subtract_from_variable = { treasury = 7.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 499 }
				}
				subtract_from_variable = { treasury = 10.0 }
			}
		}
		
		remove_effect = {
			set_failsafe_values = yes
			recalculate_party = yes 
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	promote_outlook_decision_support_emerging_parties = {
	
		icon = eng_propaganda_campaigns
		
		cost = 150

		days_remove = 90
		days_re_enable = 30
		
		modifier = { communism_drift = 0.2 }

		complete_effect = {
			
			custom_effect_tooltip = treasury_loss_2_bil_TT
			
			if = { limit = { check_variable = { num_of_factories < 4 } }
				subtract_from_variable = { treasury = 0.05 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 3 }
					check_variable = { num_of_factories < 8 }
				}
				subtract_from_variable = { treasury = 0.1 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 7 }
					check_variable = { num_of_factories < 16 }
				}
				subtract_from_variable = { treasury = 0.2 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 15 }
					check_variable = { num_of_factories < 26 }
				}
				subtract_from_variable = { treasury = 0.35 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 25 }
					check_variable = { num_of_factories < 39 }
				}
				subtract_from_variable = { treasury = 0.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 38 }
					check_variable = { num_of_factories < 54 }
				}
				subtract_from_variable = { treasury = 0.75 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 53 }
					check_variable = { num_of_factories < 82 }
				}
				subtract_from_variable = { treasury = 1.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 81 }
					check_variable = { num_of_factories < 120 }
				}
				subtract_from_variable = { treasury = 1.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 119 }
					check_variable = { num_of_factories < 164 }
				}
				subtract_from_variable = { treasury = 2.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 163 }
					check_variable = { num_of_factories < 250 }
				}
				subtract_from_variable = { treasury = 4.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 249 }
					check_variable = { num_of_factories < 370 }
				}
				subtract_from_variable = { treasury = 5.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 369 }
					check_variable = { num_of_factories < 500 }
				}
				subtract_from_variable = { treasury = 7.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 499 }
				}
				subtract_from_variable = { treasury = 10.0 }
			}
		}
		
		remove_effect = {
			set_failsafe_values = yes
			recalculate_party = yes 
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	promote_outlook_decision_support_the_non_aligned_parties = {
	
		icon = eng_propaganda_campaigns
		
		cost = 150

		days_remove = 90
		days_re_enable = 30

		modifier = { neutrality_drift = 0.2 }

		complete_effect = {
			
			custom_effect_tooltip = treasury_loss_2_bil_TT
			
			if = { limit = { check_variable = { num_of_factories < 4 } }
				subtract_from_variable = { treasury = 0.05 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 3 }
					check_variable = { num_of_factories < 8 }
				}
				subtract_from_variable = { treasury = 0.1 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 7 }
					check_variable = { num_of_factories < 16 }
				}
				subtract_from_variable = { treasury = 0.2 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 15 }
					check_variable = { num_of_factories < 26 }
				}
				subtract_from_variable = { treasury = 0.35 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 25 }
					check_variable = { num_of_factories < 39 }
				}
				subtract_from_variable = { treasury = 0.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 38 }
					check_variable = { num_of_factories < 54 }
				}
				subtract_from_variable = { treasury = 0.75 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 53 }
					check_variable = { num_of_factories < 82 }
				}
				subtract_from_variable = { treasury = 1.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 81 }
					check_variable = { num_of_factories < 120 }
				}
				subtract_from_variable = { treasury = 1.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 119 }
					check_variable = { num_of_factories < 164 }
				}
				subtract_from_variable = { treasury = 2.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 163 }
					check_variable = { num_of_factories < 250 }
				}
				subtract_from_variable = { treasury = 4.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 249 }
					check_variable = { num_of_factories < 370 }
				}
				subtract_from_variable = { treasury = 5.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 369 }
					check_variable = { num_of_factories < 500 }
				}
				subtract_from_variable = { treasury = 7.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 499 }
				}
				subtract_from_variable = { treasury = 10.0 }
			}
		}
		
		remove_effect = {
			set_failsafe_values = yes
			recalculate_party = yes 
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	promote_outlook_decision_support_the_nationalists = {
	
		icon = eng_propaganda_campaigns
		
		cost = 150

		is_good = no
		days_remove = 90
		days_re_enable = 30
		fire_only_once = no
		
		modifier = { nationalist_drift = 0.2 }

		complete_effect = {
			
			custom_effect_tooltip = treasury_loss_2_bil_TT
			
			if = { limit = { check_variable = { num_of_factories < 4 } }
				subtract_from_variable = { treasury = 0.05 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 3 }
					check_variable = { num_of_factories < 8 }
				}
				subtract_from_variable = { treasury = 0.1 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 7 }
					check_variable = { num_of_factories < 16 }
				}
				subtract_from_variable = { treasury = 0.2 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 15 }
					check_variable = { num_of_factories < 26 }
				}
				subtract_from_variable = { treasury = 0.35 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 25 }
					check_variable = { num_of_factories < 39 }
				}
				subtract_from_variable = { treasury = 0.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 38 }
					check_variable = { num_of_factories < 54 }
				}
				subtract_from_variable = { treasury = 0.75 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 53 }
					check_variable = { num_of_factories < 82 }
				}
				subtract_from_variable = { treasury = 1.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 81 }
					check_variable = { num_of_factories < 120 }
				}
				subtract_from_variable = { treasury = 1.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 119 }
					check_variable = { num_of_factories < 164 }
				}
				subtract_from_variable = { treasury = 2.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 163 }
					check_variable = { num_of_factories < 250 }
				}
				subtract_from_variable = { treasury = 4.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 249 }
					check_variable = { num_of_factories < 370 }
				}
				subtract_from_variable = { treasury = 5.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 369 }
					check_variable = { num_of_factories < 500 }
				}
				subtract_from_variable = { treasury = 7.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 499 }
				}
				subtract_from_variable = { treasury = 10.0 }
			}
		}
		
		remove_effect = {
			set_failsafe_values = yes
			recalculate_party = yes 
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	
	promote_outlook_decision_support_the_salafists = {
	
		icon = eng_propaganda_campaigns
		
		cost = 150

		days_remove = 90
		days_re_enable = 30
		
		allowed = {
			OR = {
				is_middle_eastern_nation = yes
				#european
				original_tag = ALB
				original_tag = BOS
				original_tag = KOS
				original_tag = CHE
				#asian
				is_Central_Asia = yes
				original_tag = AZE
				original_tag = RAJ
				original_tag = PAK
				original_tag = SRI
				original_tag = MLD
				original_tag = PHI
				original_tag = MAY
				original_tag = IND
				original_tag = BRU
				#america
				original_tag = SUR
				#subsaharan africa
				is_horn_of_africa_nation = yes
				original_tag = COM
				original_tag = TNZ
				original_tag = KEN
				original_tag = SRF
				original_tag = DAR
				original_tag = SUD
				original_tag = MAU
				original_tag = SEN
				original_tag = MAL
				original_tag = NGR
				original_tag = CAM
				original_tag = BFA
				original_tag = CHA
				original_tag = CDI
				original_tag = GAM
				original_tag = GUB
				original_tag = NIG
				original_tag = LIB
				original_tag = GUI
				original_tag = LUR
				original_tag = TOG
				original_tag = BEN
				original_tag = SEL
				original_tag = MRT
				original_tag = LOG
				original_tag = CAR
			}
			NOT = {
				OR = {
					original_tag = ISR
				}
			}
		}
		
		modifier = { fascism_drift = 0.2 }

		complete_effect = {
			
			custom_effect_tooltip = treasury_loss_2_bil_TT
			
			if = { limit = { check_variable = { num_of_factories < 4 } }
				subtract_from_variable = { treasury = 0.05 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 3 }
					check_variable = { num_of_factories < 8 }
				}
				subtract_from_variable = { treasury = 0.1 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 7 }
					check_variable = { num_of_factories < 16 }
				}
				subtract_from_variable = { treasury = 0.2 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 15 }
					check_variable = { num_of_factories < 26 }
				}
				subtract_from_variable = { treasury = 0.35 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 25 }
					check_variable = { num_of_factories < 39 }
				}
				subtract_from_variable = { treasury = 0.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 38 }
					check_variable = { num_of_factories < 54 }
				}
				subtract_from_variable = { treasury = 0.75 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 53 }
					check_variable = { num_of_factories < 82 }
				}
				subtract_from_variable = { treasury = 1.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 81 }
					check_variable = { num_of_factories < 120 }
				}
				subtract_from_variable = { treasury = 1.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 119 }
					check_variable = { num_of_factories < 164 }
				}
				subtract_from_variable = { treasury = 2.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 163 }
					check_variable = { num_of_factories < 250 }
				}
				subtract_from_variable = { treasury = 4.0 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 249 }
					check_variable = { num_of_factories < 370 }
				}
				subtract_from_variable = { treasury = 5.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 369 }
					check_variable = { num_of_factories < 500 }
				}
				subtract_from_variable = { treasury = 7.5 }
			}
			if = { 
				limit = { 
					check_variable = { num_of_factories > 499 }
				}
				subtract_from_variable = { treasury = 10.0 }
			}
		}
		
		remove_effect = {
			set_failsafe_values = yes
			recalculate_party = yes 
		}
		
		ai_will_do = {
			factor = 0
		}
	}
}